dragonfly.git
13 years agoRemove unused VIRTUAL_KERNEL option.
Sascha Wildner [Tue, 30 Jan 2007 15:53:30 +0000 (15:53 +0000)]
Remove unused VIRTUAL_KERNEL option.

OK-by: dillon
13 years agoEnhance markup.
Sascha Wildner [Tue, 30 Jan 2007 15:23:34 +0000 (15:23 +0000)]
Enhance markup.

13 years agoRework DEV_SUPPORT infrastructure.
Simon Schubert [Tue, 30 Jan 2007 14:50:11 +0000 (14:50 +0000)]
Rework DEV_SUPPORT infrastructure.

Reviewed-by: tgen@
13 years agoFix values for CCVER, they are gcc*, not cc*.
Simon Schubert [Tue, 30 Jan 2007 14:47:56 +0000 (14:47 +0000)]
Fix values for CCVER, they are gcc*, not cc*.

Noticed-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk> (via unrelated patch)
13 years agoFix iovec checks to match properly. iovec == MAXIOV and iovec == SMALLIOV
Thomas E. Spanjaard [Mon, 29 Jan 2007 20:44:02 +0000 (20:44 +0000)]
Fix iovec checks to match properly. iovec == MAXIOV and iovec == SMALLIOV
are both legal in those respective statements.

On-behalf-of: Joerg Sonnenberger <joerg@britannica.bec.de>

13 years agosmbfs was not guarenteeing a NULL return vnode on error. This is required
Matthew Dillon [Mon, 29 Jan 2007 06:10:01 +0000 (06:10 +0000)]
smbfs was not guarenteeing a NULL return vnode on error.  This is required
by DragonFly.

Reported-by: Gergo Szakal <bastyaelvtars@gmail.com>
13 years agoo Add modified tables based on the reports/patches from the following people:
YONETANI Tomokazu [Sun, 28 Jan 2007 17:32:35 +0000 (17:32 +0000)]
o Add modified tables based on the reports/patches from the following people:
  Pentium M 750 1.86GHz (Vlad Galu)
  Pentium M 760 2.00GHz (Victor Balada Diaz)
  Pentium M 715 1.50GHz (Ryan O'Connor)

o Bring in some fixes from NetBSD
  rev 1.27: Fix Pentium M 770 table.
  rev 1.25: Added 'Low Voltage Intel Pentium M processor 1.30 GHz' entry.

13 years agoDocument the recently added {STAILQ,TAILQ}_CONCAT macros.
Sascha Wildner [Sun, 28 Jan 2007 14:52:02 +0000 (14:52 +0000)]
Document the recently added {STAILQ,TAILQ}_CONCAT macros.

13 years agoEnable setting debug.acpi.{layer,level} via sysctl command.
YONETANI Tomokazu [Sun, 28 Jan 2007 06:33:49 +0000 (06:33 +0000)]
Enable setting debug.acpi.{layer,level} via sysctl command.

13 years agokern_recvmsg() may not return a valid(non-NULL) pointer to `sa'
YONETANI Tomokazu [Sun, 28 Jan 2007 06:31:00 +0000 (06:31 +0000)]
kern_recvmsg() may not return a valid(non-NULL) pointer to `sa'
even if its return value is 0.  Only sys_recvfrom() knew this.
Fix other callers to deal with this.

13 years agoFix argument lists of locking primitives (thereby fixing some compilation
Sascha Wildner [Sat, 27 Jan 2007 15:03:25 +0000 (15:03 +0000)]
Fix argument lists of locking primitives (thereby fixing some compilation
warnings).

While I'm here, remove several empty functions.

13 years agoi should be pre-incremented in the loop maintenance code or else
YONETANI Tomokazu [Sat, 27 Jan 2007 14:14:13 +0000 (14:14 +0000)]
i should be pre-incremented in the loop maintenance code or else
cp is assigned one element earlier than expected.  Convert the loop
to a simpler form.

13 years agoFix redefinition of KEX_DEFAULT_PK_ALG.
Sascha Wildner [Sat, 27 Jan 2007 08:54:05 +0000 (08:54 +0000)]
Fix redefinition of KEX_DEFAULT_PK_ALG.

13 years agoAdd missing '\n'
Sepherosa Ziehau [Sat, 27 Jan 2007 03:36:10 +0000 (03:36 +0000)]
Add missing '\n'

Obtained-from: FreeBSD (sam@freebsd.org)

13 years agoImplement -D
Matthew Dillon [Fri, 26 Jan 2007 18:58:55 +0000 (18:58 +0000)]
Implement -D

Submitted-by: "Steve O'Hara-Smith" <steve@sohara.org>
13 years agoRemove gobsd from the list.
Matthew Dillon [Fri, 26 Jan 2007 18:52:58 +0000 (18:52 +0000)]
Remove gobsd from the list.

Submitted-by: "Steve Mynott" <steve.mynott@gmail.com>
13 years agoFix generation of the mount path for "/" when a process is chrooted into
Matthew Dillon [Fri, 26 Jan 2007 18:05:23 +0000 (18:05 +0000)]
Fix generation of the mount path for "/" when a process is chrooted into
a subdirectory of a mount point.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
13 years agoSetup for 1.8 release - Adjust HEAD to 1.9.0
Matthew Dillon [Thu, 25 Jan 2007 18:57:48 +0000 (18:57 +0000)]
Setup for 1.8 release - Adjust HEAD to 1.9.0

13 years agoSetup for 1.8 release - add new targets to Makefile to udpate the slip tag
Matthew Dillon [Thu, 25 Jan 2007 18:46:02 +0000 (18:46 +0000)]
Setup for 1.8 release - add new targets to Makefile to udpate the slip tag
for 1.8, and add a new cvsup example file for 1.8.

13 years agoSetup for 1.8 release - bump HEAD to 1.7.1 and synchronize preview tag.
Matthew Dillon [Thu, 25 Jan 2007 18:42:41 +0000 (18:42 +0000)]
Setup for 1.8 release - bump HEAD to 1.7.1 and synchronize preview tag.

13 years agoFix the incorrect addition of a leading '/' in file paths in the journaling
Matthew Dillon [Thu, 25 Jan 2007 18:19:31 +0000 (18:19 +0000)]
Fix the incorrect addition of a leading '/' in file paths in the journaling
stream.  This addition was a side effect of changes made to the
namecache topology.

Submitted-by: "Steve O'Hara-Smith" <steve@sohara.org>
13 years agoSilence harmless warnings (for module build).
YONETANI Tomokazu [Thu, 25 Jan 2007 15:12:06 +0000 (15:12 +0000)]
Silence harmless warnings (for module build).

13 years agoStop init before ripping its filesystem references out in order to
Matthew Dillon [Thu, 25 Jan 2007 09:18:13 +0000 (09:18 +0000)]
Stop init before ripping its filesystem references out in order to
prevent a panic from occuring during the shutdown sequence.  This is
a bit of a hack and a better solution is needed.

Reported-by: Gergo Szakal <bastyaelvtars@gmail.com>
13 years agoInitialize ACPI task thread before AcpiEnableSubsystem() installs
YONETANI Tomokazu [Thu, 25 Jan 2007 02:43:35 +0000 (02:43 +0000)]
Initialize ACPI task thread before AcpiEnableSubsystem() installs
interrupt handlers.

13 years agoPoor attempt to tracking the stack frame through a trap. Adjust for
Matthew Dillon [Wed, 24 Jan 2007 18:56:30 +0000 (18:56 +0000)]
Poor attempt to tracking the stack frame through a trap.  Adjust for
the additional elements pushed onto the stack to pass a trapframe pointer
instead of the trapframe itself.

13 years agoDeclare dumpmag as used, even though it is an unused static const.
Simon Schubert [Wed, 24 Jan 2007 16:09:29 +0000 (16:09 +0000)]
Declare dumpmag as used, even though it is an unused static const.

This prevents gcc from optimizing it away and makes savecore happy.

Dragonfly-Bug: <http://bugs.dragonflybsd.org/issue536>

13 years agoMove acpica-unix-20050309 into the Attic
YONETANI Tomokazu [Wed, 24 Jan 2007 15:55:50 +0000 (15:55 +0000)]
Move acpica-unix-20050309 into the Attic

13 years agocheckdirs() was being passed the wrong mount point, resulting in a panic
Matthew Dillon [Wed, 24 Jan 2007 01:25:47 +0000 (01:25 +0000)]
checkdirs() was being passed the wrong mount point, resulting in a panic
when mounting over an already existing mountpoint and improperly adjusting
the current or root directory for processes when finding a matching ncp
whether they were relative to the old mount or not.

Rewrite and document checkdirs() to fix the problems.

Reported-by: "Vincent Labrecque" <vnc@hush.ai>
13 years agoCheck EEPROM twice in em_hardware_init(), because for some PCIe em(4) first
Sepherosa Ziehau [Tue, 23 Jan 2007 11:09:25 +0000 (11:09 +0000)]
Check EEPROM twice in em_hardware_init(), because for some PCIe em(4) first
checking will fail if link is down.  Add comment about it.

This should solve the problem for Lenovo/IBM laptop users: if link is down,
then em(4) will not be initialized properly.

Submitted-and-Tested-by: Michal Belczyk <belczyk@bsd.krakow.pl>
Obtained-from: FreeBSD current list, Jack Vogel <jfvogel@gmail.com>

13 years agoDon't use readline anymore. kadmin/ktutil should be updated to use
Sascha Wildner [Tue, 23 Jan 2007 10:22:55 +0000 (10:22 +0000)]
Don't use readline anymore. kadmin/ktutil should be updated to use
libedit.

In-discussion-with: Matt Emmerton, dillon, corecode

13 years agoFix a crash related to the NPX (floating point) interrupt. The interrupt
Matthew Dillon [Tue, 23 Jan 2007 08:43:02 +0000 (08:43 +0000)]
Fix a crash related to the NPX (floating point) interrupt.  The interrupt
frame was not being properly translated to a trapframe due to recent
trapframe changes.

Reported-by: Sascha Wildner <saw@online.de>
13 years agoPass structs by reference if you expect the callee to modify them.
Simon Schubert [Mon, 22 Jan 2007 19:37:05 +0000 (19:37 +0000)]
Pass structs by reference if you expect the callee to modify them.

This fixes kernel boot with gcc41.  The gpfault people were seeing comes from
vm86_bioscall() in init386().  The cause is that the assembler code passes the
struct vm86frame by value, i.e. simply creating it on the stack.  This worked
up to gcc34, but gcc41 now optimizes stores to unused memory locations away,
whis is allowed per the standards.  This led to an uninitialized stack frame
which in turn panicked the box.

Oooohh...-please-commit-by: dillon@

13 years agoIncorrect calculation of a virtual block address within
YONETANI Tomokazu [Mon, 22 Jan 2007 15:31:37 +0000 (15:31 +0000)]
Incorrect calculation of a virtual block address within
a single indirect block causes corruption of large file.

Submitted-by: Yuichiro Goto <y7goto at gmail.com>
13 years agoIf there is no commitid, we need to initialize Delta->commitid to NULL to
Peter Avalos [Sun, 21 Jan 2007 17:58:42 +0000 (17:58 +0000)]
If there is no commitid, we need to initialize Delta->commitid to NULL to
prevent segmentation faults later.

13 years agoRemove GCC 4.0's manpages, not those of 4.1.
Sascha Wildner [Sun, 21 Jan 2007 12:24:43 +0000 (12:24 +0000)]
Remove GCC 4.0's manpages, not those of 4.1.

13 years agoAdd a workaround for some Lenovo/IBM laptops' onboard em(4).
Sepherosa Ziehau [Sun, 21 Jan 2007 10:44:45 +0000 (10:44 +0000)]
Add a workaround for some Lenovo/IBM laptops' onboard em(4).

Without this workaround, em(4) is extremely slow when TXing packets, though
polling(4) seems to make the situation better, the speed is still far from
expectation for 100BaseTX-FDX network.

Reported-by: Michal Belczyk <belczyk@bsd.krakow.pl>
Obtained-from: FreeBSD-current mail list, Jack Vogel <jfvogel@gmail.com>

# According to Jack Vogel:
# "saying its known to be a problem doesnt mean its cause is known"

13 years agoRemove unused argument.
Sascha Wildner [Sun, 21 Jan 2007 10:40:39 +0000 (10:40 +0000)]
Remove unused argument.

13 years agopbn * vn->sc_secsize may wraparound, because both pbn and vn->sc_secsize
YONETANI Tomokazu [Sun, 21 Jan 2007 10:37:29 +0000 (10:37 +0000)]
pbn * vn->sc_secsize may wraparound, because both pbn and vn->sc_secsize
are of type int.  Cast to off_t before multiplication.

13 years agoSync the network and sound modules sections with what we actually have.
Sascha Wildner [Sun, 21 Jan 2007 10:10:37 +0000 (10:10 +0000)]
Sync the network and sound modules sections with what we actually have.

Submitted-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
13 years agoRemove BUGS section and note that Matt fixed nullfs.
Sascha Wildner [Sun, 21 Jan 2007 10:07:50 +0000 (10:07 +0000)]
Remove BUGS section and note that Matt fixed nullfs.

Submitted-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
13 years agoDragonFly supports up to 16 partitions, not 8.
Sascha Wildner [Sun, 21 Jan 2007 10:06:10 +0000 (10:06 +0000)]
DragonFly supports up to 16 partitions, not 8.

Submitted-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
13 years agoAssume 0.0 if no float value is passed.
Sascha Wildner [Sun, 21 Jan 2007 00:24:55 +0000 (00:24 +0000)]
Assume 0.0 if no float value is passed.

13 years agoRemove wrong declarations (fix gcc41 build).
Sascha Wildner [Sat, 20 Jan 2007 21:32:36 +0000 (21:32 +0000)]
Remove wrong declarations (fix gcc41 build).

Found-by: pavalos, walt
13 years agoAdd CC.1 MLINK.
Sascha Wildner [Sat, 20 Jan 2007 20:26:37 +0000 (20:26 +0000)]
Add CC.1 MLINK.

13 years agoRemove the advertising clause from vinum with permission from Greg Lehey,
Matthew Dillon [Sat, 20 Jan 2007 19:20:39 +0000 (19:20 +0000)]
Remove the advertising clause from vinum with permission from Greg Lehey,
as encapsulated in his response to a query by Matt Emmerton:

---
On Friday, 19 January 2007 at 15:23:36 -0500, Matt Emmerton wrote:
> Greg,
>
> I'm working on DragonFlyBSD, which branched from FreeBSD-4.x.  As such, it
> has an "old" version of vinum which uses a BSD licence which includes an
> advertising clause.  (Interestingly, not requiring Berkeley to be mention=
ed,
> but some other organization.)
>
> I know that vinum has undergone a GEOM-ification in newer FreeBSD release=
s,
> and it appears that all the new code in FreeBSD does not have any adverti=
sing
> clauses.  However, this is not useful to us since we don't have GEOM.

Understood.  I've already sent a message to the FreeBSD people saying
that they can remove the advertising clause; of course you may do so
as well.

Greg
---

Submitted-by: Matt Emmerton <matt@gsicomp.on.ca>
13 years agoFix MLINK.
Sascha Wildner [Sat, 20 Jan 2007 19:18:02 +0000 (19:18 +0000)]
Fix MLINK.

13 years agoFix license issue by removing -lreadline. The programs don't reference
Matthew Dillon [Sat, 20 Jan 2007 19:01:46 +0000 (19:01 +0000)]
Fix license issue by removing -lreadline.  The programs don't reference
the library anyway.

Submitted-by: Matt Emmerton <matt@gsicomp.on.ca> added the comment:
13 years agoDon't build gcc libs with -liberty.
Simon Schubert [Sat, 20 Jan 2007 18:24:34 +0000 (18:24 +0000)]
Don't build gcc libs with -liberty.

13 years agoSpelling fix.
Peter Avalos [Sat, 20 Jan 2007 06:29:00 +0000 (06:29 +0000)]
Spelling fix.

13 years agoMerge from vendor branch BZIP:
Peter Avalos [Sat, 20 Jan 2007 05:57:40 +0000 (05:57 +0000)]
Merge from vendor branch BZIP:
Update to bzip2-1.0.4.

13 years agoUpdate to bzip2-1.0.4.
Peter Avalos [Sat, 20 Jan 2007 05:57:40 +0000 (05:57 +0000)]
Update to bzip2-1.0.4.

13 years agoUpdate to bzip2-1.0.4.
Peter Avalos [Sat, 20 Jan 2007 05:57:40 +0000 (05:57 +0000)]
Update to bzip2-1.0.4.

13 years agoAdd DPADD lines for used libs.
Simon Schubert [Sat, 20 Jan 2007 03:51:33 +0000 (03:51 +0000)]
Add DPADD lines for used libs.

13 years agoFix internal compiler errors with propolice enabled.
Simon Schubert [Sat, 20 Jan 2007 03:16:33 +0000 (03:16 +0000)]
Fix internal compiler errors with propolice enabled.

Obtained-from: Gentoo/Kevin F. Quinn <kevinquinn@gentoo.org>/Gentoo Bug #74457

13 years agoFix a hang during boot.
YONETANI Tomokazu [Fri, 19 Jan 2007 23:58:53 +0000 (23:58 +0000)]
Fix a hang during boot.
MaxDepth argument to AcpiOsCacheCreate() is `maximum number of
unallocated objects', not `maximum number of allocatable objects'.
This resulted in what seemed to be a hang if the number of objects
in a cache exceeded ACPI_MAX_*_CACHE_DEPTH(currently 96).

Tracked-down-by: Simon 'corecode' Schubert <corecode at fs.ei.tum.de>
Tested-by: Johannes Hofmann <Johannes.Hofmann at gmx.de>
13 years agoRework the make rule for patched *.c files.
YONETANI Tomokazu [Fri, 19 Jan 2007 19:18:09 +0000 (19:18 +0000)]
Rework the make rule for patched *.c files.
Previously ${SRCS} contained the file name with and without
the directory part(hardware/hwsleep.c vs hwsleep.c), and
the object files from the latter are trimmed off of ${OBJS}.
This resulted in compiling both patched and unpatched version
and the object files get created under ${.OBJDIR}.
Also make a patched *.c file depend on the patch, so as the
*.c file is re-generated when the patch is updated.

13 years agoAcpiTbDeleteTable() now takes a (ACPI_TABLE_DESC *) as its argument,
YONETANI Tomokazu [Fri, 19 Jan 2007 16:41:28 +0000 (16:41 +0000)]
AcpiTbDeleteTable() now takes a (ACPI_TABLE_DESC *) as its argument,
not the index of the table to delete.

13 years agoComplain if CPUTYPE is set to an unknown value.
Simon Schubert [Fri, 19 Jan 2007 10:38:59 +0000 (10:38 +0000)]
Complain if CPUTYPE is set to an unknown value.

13 years agoFix handling of MACHINE_CPU.
Simon Schubert [Fri, 19 Jan 2007 10:38:38 +0000 (10:38 +0000)]
Fix handling of MACHINE_CPU.

13 years agoDocument -U.
Sascha Wildner [Fri, 19 Jan 2007 08:13:44 +0000 (08:13 +0000)]
Document -U.

13 years agoRename /usr/src/sys/machine to /usr/src/sys/platform. Give the platform
Matthew Dillon [Fri, 19 Jan 2007 07:23:43 +0000 (07:23 +0000)]
Rename /usr/src/sys/machine to /usr/src/sys/platform.  Give the platform
name its own variable, MACHINE_PLATFORM, instead of trying to use MACHINE
to name it.  Adjust the build infrastructure to match.

Revert MACHINE back to its original definition and remove uname shims.
This removes confusion with third party software.

This means a pc32 build has MACHINE=i386 and MACHINE_ARCH=i386, and a
vkernel build also has MACHINE=i386 and MACHINE_ARCH=i386.  The new
MACHINE_PLAFORM would be pc32 for a pc32 build, and vkernel for a vkernel
build.

Adjust all kernel configuration files to specify platform, machine, AND
machine_arch.

13 years agoFix negation handling.
Simon Schubert [Thu, 18 Jan 2007 17:03:18 +0000 (17:03 +0000)]
Fix negation handling.

Previously, constructs involving && or || and a pipe would fail if the
first element was negated, like  true && ! true | false.  FreeBSD and
NetBSD did several rounds of fixes, each fixing special cases, however
those fixes failed to correct the real problem.  We now *always* process
the negation (!) *only* in pipes.

13 years agoFix a stack reference bug and do a cleanup.
Victor Balada Diaz [Thu, 18 Jan 2007 12:34:46 +0000 (12:34 +0000)]
Fix a stack reference bug and do a cleanup.

Reported-By: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
Bug-ID: Issue518
Commited-On-Behalf-Of: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>

13 years agoPut socket() declaration into __{BEGIN,END}_DECL, so c++ compiler
Sepherosa Ziehau [Thu, 18 Jan 2007 11:46:32 +0000 (11:46 +0000)]
Put socket() declaration into __{BEGIN,END}_DECL, so c++ compiler
can see the correct fucntion name.

Reported-by: walt <wa1ter@myrealbox.com>
13 years agoTeach rcs utils about commitid phrase.
YONETANI Tomokazu [Wed, 17 Jan 2007 17:56:24 +0000 (17:56 +0000)]
Teach rcs utils about commitid phrase.

NOTE: commands don't emit the phrase into RCS files unless you compile
      them with RCS_EMIT_COMMITID=yes.

Taken-from: contrib/rcs-5.7-commitid.patch which came with cvs-1.12.13

13 years agoUpdate ACPI build wrappers to use new ACPI-CA code.
YONETANI Tomokazu [Wed, 17 Jan 2007 17:31:20 +0000 (17:31 +0000)]
Update ACPI build wrappers to use new ACPI-CA code.
* many fixes in ACPI-CA code (see changes.txt for detail)

* enable interpreter slack code
  relaxed checking on AML code to get fewer warnings

* use OS implementation of spinlock and cache object:
  OSL cache code by:
  Jeffrey Hsu <hsu@dragonflybsd.org>
  Fix to semaphore and locking code:
  Simon 'corecode' Schubert <corecode@fs.ei.tum.de>

* added a few debugging knobs(on make command line):
  ACPI_DEBUG_LOCKS=yes to activate debugging code for AcpiOs*Lock()
  ACPI_DEBUG_MEMMAP=yes to activate debugging code for AcpiOs*MapMemory()

13 years agoMerge from vendor branch INTEL_ACPICA:
YONETANI Tomokazu [Wed, 17 Jan 2007 16:29:46 +0000 (16:29 +0000)]
Merge from vendor branch INTEL_ACPICA:
Import acpica-unix-20061109 from Intel.

13 years agoImport acpica-unix-20061109 from Intel. vendor/INTEL_ACPICA
YONETANI Tomokazu [Wed, 17 Jan 2007 16:29:46 +0000 (16:29 +0000)]
Import acpica-unix-20061109 from Intel.

13 years agoDon't use 'kenv' as default .Nm.
Thomas E. Spanjaard [Wed, 17 Jan 2007 13:17:31 +0000 (13:17 +0000)]
Don't use 'kenv' as default .Nm.

Reported-by: Sascha Wildner <saw@online.de>

13 years agoRemove gcc40 remains.
Sascha Wildner [Wed, 17 Jan 2007 12:09:42 +0000 (12:09 +0000)]
Remove gcc40 remains.

13 years agoChange the synopsis from ipnumber to ip-list
Victor Balada Diaz [Wed, 17 Jan 2007 10:37:48 +0000 (10:37 +0000)]
Change the synopsis from ipnumber to ip-list

Reported-by: corecode
13 years ago* Add documentation for -I and add an example for network setup.
Sascha Wildner [Wed, 17 Jan 2007 08:44:32 +0000 (08:44 +0000)]
* Add documentation for -I and add an example for network setup.

* Show the -e option's argument format in the SYNOPSIS instead of explaining
  it in the text.

* Add -DNO_MODULES to the buildkernel example.

* Add some more references to SEE ALSO.

* Fix a typo.

Thanks to sephe for advice regarding -I.

13 years agoCast sentinel for execl() to (char *) to quiet gcc4 warning.
Peter Avalos [Wed, 17 Jan 2007 02:34:10 +0000 (02:34 +0000)]
Cast sentinel for execl() to (char *) to quiet gcc4 warning.

13 years agoUse genassym to create target symbols instead of
Simon Schubert [Wed, 17 Jan 2007 02:17:36 +0000 (02:17 +0000)]
Use genassym to create target symbols instead of
rolling a non-cross-safe version.

13 years agoAdd SYSCTLS, FILES and BUGS sections to kenv.9, and misc cleanups.
Thomas E. Spanjaard [Tue, 16 Jan 2007 19:34:54 +0000 (19:34 +0000)]
Add SYSCTLS, FILES and BUGS sections to kenv.9, and misc cleanups.

13 years agoAdd missing -I path when compiling assembly files.
Matthew Dillon [Tue, 16 Jan 2007 18:38:08 +0000 (18:38 +0000)]
Add missing -I path when compiling assembly files.

13 years agoAdd missing #endif.
Sascha Wildner [Tue, 16 Jan 2007 09:58:02 +0000 (09:58 +0000)]
Add missing #endif.

Reported-by: Petr Janda <elekktretterr@exemail.com.au>
13 years agos/. Ar/.Ar/
Sascha Wildner [Tue, 16 Jan 2007 07:49:57 +0000 (07:49 +0000)]
s/. Ar/.Ar/

13 years agoImplement getcontext(), setcontext(), makecontext(), and swapcontext().
Matthew Dillon [Tue, 16 Jan 2007 07:16:23 +0000 (07:16 +0000)]
Implement getcontext(), setcontext(), makecontext(), and swapcontext().

This is a preliminary libc-only implementation.  sigprocmask() is used
to mask signals during the context switch and to save and restore signals.
FP registers are not currently saved or restored - that is, synchronous
use is intended.

Submitted-by: "Matt Emmerton" <matt@gsicomp.on.ca>
Finished-up-by: "Matthew Dillon" <dillon@backplane.com>
13 years agoAlso build+install csu in the world stage.
Simon Schubert [Mon, 15 Jan 2007 23:09:05 +0000 (23:09 +0000)]
Also build+install csu in the world stage.

13 years agoRemove build glue of gcc40.
Simon Schubert [Mon, 15 Jan 2007 23:07:37 +0000 (23:07 +0000)]
Remove build glue of gcc40.

13 years agoCorrect the DragonFly version of first appearance from 1.8 to 1.7.
Thomas E. Spanjaard [Mon, 15 Jan 2007 22:42:55 +0000 (22:42 +0000)]
Correct the DragonFly version of first appearance from 1.8 to 1.7.

Reported-by: Simon Schubert <corecode@fs.ei.tum.de>

13 years agoAdd a manual page in section 9 for the recently added kernel environment
Thomas E. Spanjaard [Mon, 15 Jan 2007 22:08:03 +0000 (22:08 +0000)]
Add a manual page in section 9 for the recently added kernel environment
support functions, as well as the existing ones.

Minor nit: the Makefile's MAN entries haven't been sorted in a while...

13 years agoWe want the virtual kernel to be default-secure. Disable writes to kernel
Matthew Dillon [Mon, 15 Jan 2007 20:51:16 +0000 (20:51 +0000)]
We want the virtual kernel to be default-secure.  Disable writes to kernel
memory and disable module loading by default when running a virtual kernel.
Run the virtual kernel with the -U option (for Unsecure) to run with these
enabled.

Reads are still allowed since the virtual kernel's memory does not
contain any compromising data from the real kernel.

13 years agocputimer_intr_reload() - prevent a negatively indexed or too-small a reload
Matthew Dillon [Mon, 15 Jan 2007 19:08:10 +0000 (19:08 +0000)]
cputimer_intr_reload() - prevent a negatively indexed or too-small a reload
value from loading the kqueue timer with an illegal value.

13 years agoRemove traces of gcc40
Simon Schubert [Mon, 15 Jan 2007 18:29:44 +0000 (18:29 +0000)]
Remove traces of gcc40

13 years agoRetire gcc-4.0.
Simon Schubert [Mon, 15 Jan 2007 18:23:24 +0000 (18:23 +0000)]
Retire gcc-4.0.

13 years agoCreate startup files from the GCC sources and drop our versions.
Simon Schubert [Mon, 15 Jan 2007 18:01:44 +0000 (18:01 +0000)]
Create startup files from the GCC sources and drop our versions.
This places the startup files into the GCC specific lib dir.  A short
overview is given in lib/csu/README.

This fixes issues with gcc41 and static binaries.

13 years agoCopy forgotten header from gcc34 build glue
Simon Schubert [Mon, 15 Jan 2007 17:53:16 +0000 (17:53 +0000)]
Copy forgotten header from gcc34 build glue

13 years agoReorder libs to allow -DNOSHARED linkage
Simon Schubert [Mon, 15 Jan 2007 17:51:23 +0000 (17:51 +0000)]
Reorder libs to allow -DNOSHARED linkage

13 years agoSync with FreeBSD.
Sascha Wildner [Mon, 15 Jan 2007 15:27:11 +0000 (15:27 +0000)]
Sync with FreeBSD.

13 years agocrtstuff.c is now present
Simon Schubert [Mon, 15 Jan 2007 14:46:54 +0000 (14:46 +0000)]
crtstuff.c is now present

13 years agoMerge from vendor branch GCC:
Simon Schubert [Mon, 15 Jan 2007 14:46:13 +0000 (14:46 +0000)]
Merge from vendor branch GCC:
Import crt code from gcc-4.1.1

13 years agoImport crt code from gcc-4.1.1
Simon Schubert [Mon, 15 Jan 2007 14:46:13 +0000 (14:46 +0000)]
Import crt code from gcc-4.1.1

13 years agoDo not lookup symbols with STB_LOCAL binding
Simon Schubert [Mon, 15 Jan 2007 14:38:22 +0000 (14:38 +0000)]
Do not lookup symbols with STB_LOCAL binding

When a shared object with static TLS symbols gets linked, ld issues
a R_386_TLS_DTPMAP32 relocation on i386, referencing symbol 0, the
undefined symbol.  This is perfectly legal, as this is simply a
local symbol and nothing but the local module's TLS index is needed.

This fixes execution of binaries linked to gcc41's libstdc++.

Obtained-from: FreeBSD

13 years agoBy default do not enable hardware csum on PCIe re(4), which trashes
Sepherosa Ziehau [Mon, 15 Jan 2007 12:53:26 +0000 (12:53 +0000)]
By default do not enable hardware csum on PCIe re(4), which trashes
packets intermittently if csum offload is enabled.  This problem does
not seem to plague PCI re(4).

The pattern of trashed packets is not yet identified.  From the tcpdump
information provided by Joe, the packets' size should not be the direct
cause.  Hardware bug?

Reported-by: Joe Talbott <josepht@cstone.net> (RTL8101E, PCIe re(4))
# Same problem is reported to FreeBSD by two RTL8168B(PCIe re(4)) users.

13 years agoClose two holes in the pmap code. The page table self mapping does not
Matthew Dillon [Mon, 15 Jan 2007 09:28:40 +0000 (09:28 +0000)]
Close two holes in the pmap code.  The page table self mapping does not
necessarily stay valid through a blocking condition, recheck it for every
page.  The 'next' pointer in the loop that runs through PV entries is not
safe when code blocks in the loop.  Add a generation count to detect
unexpected removals and restart the loop.  Add a kprintf() to print when
the condition is detected.

Crash-Reported-by: Nuno Antunes <bugs@crater.dragonflybsd.org>
13 years agoPass an interrupt frame to kqueue-based interrupts. Modify the console
Matthew Dillon [Mon, 15 Jan 2007 05:27:31 +0000 (05:27 +0000)]
Pass an interrupt frame to kqueue-based interrupts.  Modify the console
and the systimer subsystems to use kqueue interrupts.  Use EV_CLEAR for
all kqueue elements.

13 years agoDo not use dbg() too soon. This fixes rtld with -DDEBUG.
Simon Schubert [Mon, 15 Jan 2007 04:45:40 +0000 (04:45 +0000)]
Do not use dbg() too soon.  This fixes rtld with -DDEBUG.

Obtained-from: FreeBSD

13 years agoAdd kqueue based async I/O support to the virtual kernel. Convert VKE to
Matthew Dillon [Mon, 15 Jan 2007 01:29:04 +0000 (01:29 +0000)]
Add kqueue based async I/O support to the virtual kernel.  Convert VKE to
use the new async I/O support for reading.

Setup SIGIO as a SA_MAILBOX signal for efficiency.  Remove remaining signal
masks from sigaction() calls.