dragonfly.git
16 years agoAdd nreleae back in. It's a dummy target designed only to ensure that
Matthew Dillon [Mon, 1 Dec 2003 19:32:56 +0000 (19:32 +0000)]
Add nreleae back in.  It's a dummy target designed only to ensure that
the proper obj dir infrastructure is created so the nrelease Makefile's
can use ${.OBJDIR}.

Adjust the nrelease Makefile's to perform port checks only when actually
building the release.

16 years agoTemporary disable the ports checks.. the Makefile has to be runnable from
Matthew Dillon [Mon, 1 Dec 2003 19:12:25 +0000 (19:12 +0000)]
Temporary disable the ports checks.. the Makefile has to be runnable from
buildworld in order to create the obj dir infrastructure only (not to actually
build a release).

16 years ago* buildworld doesn't need to look at nrelease.
David Rhodus [Mon, 1 Dec 2003 17:07:26 +0000 (17:07 +0000)]
* buildworld doesn't need to look at nrelease.
This was requiring things like mkisofs and cvsup to
complete a basic buildworld.

16 years agoFix a minor bug... install cvsup and mkisofs in the correct
Matthew Dillon [Mon, 1 Dec 2003 10:10:22 +0000 (10:10 +0000)]
Fix a minor bug... install cvsup and mkisofs in the correct
directory.

16 years agoIntroduce /usr/src/nrelease which begins to implement the new 'live CD'
Matthew Dillon [Mon, 1 Dec 2003 09:59:46 +0000 (09:59 +0000)]
Introduce /usr/src/nrelease which begins to implement the new 'live CD'
ISO builder idea.  This initial commit is capable of creating bootable
ISO images which contain a complete working distribution but will boot
into a login prompt (login as root) rather then sysinstall or a
sysinstall-like utility.  Development is ongoing.  Critical subdirectories
are remounted as MFS so most normal commands, including vi, should work just
fine.

16 years agoAdd forgotten newline in debug output.
Jeroen Ruigrok/asmodai [Mon, 1 Dec 2003 09:29:11 +0000 (09:29 +0000)]
Add forgotten newline in debug output.

Synchs with FreeBSD's 1.7.

16 years agoGet rid off FreeBSD mirrors and add our own three (in Germany, Ireland, and
Jeroen Ruigrok/asmodai [Mon, 1 Dec 2003 09:02:10 +0000 (09:02 +0000)]
Get rid off FreeBSD mirrors and add our own three (in Germany, Ireland, and
Japan).

16 years agoWhen attempting to open a file path do not treat a file that appears as a
Matthew Dillon [Mon, 1 Dec 2003 08:52:20 +0000 (08:52 +0000)]
When attempting to open a file path do not treat a file that appears as a
path element as a directory.  This can lockup the boot code.

16 years agoDo not require -i0 when -o is used.
Matthew Dillon [Mon, 1 Dec 2003 06:07:16 +0000 (06:07 +0000)]
Do not require -i0 when -o is used.

16 years agoAdd a missing PRELE() when the mfs_mount kernel process exits. Because
Matthew Dillon [Mon, 1 Dec 2003 04:38:26 +0000 (04:38 +0000)]
Add a missing PRELE() when the mfs_mount kernel process exits.  Because
DragonFly does not teardown zombie processes while p_lock is non-zero this
prevented such processes from being reaped and deadlocked the init process.

16 years agoDocumentat mount_mfs -C
Matthew Dillon [Mon, 1 Dec 2003 04:36:57 +0000 (04:36 +0000)]
Documentat mount_mfs -C

16 years agoAdd the -C option to mount_mfs. This option will automatically copy the
Matthew Dillon [Mon, 1 Dec 2003 04:35:39 +0000 (04:35 +0000)]
Add the -C option to mount_mfs.  This option will automatically copy the
underlying filesystem into the MFS mount being created over it.  It does
this by loading the directory and file structure into memory, creating the
MFS mount, then storing the directory and file structure back into the MFS
mount.

This will be used when booting from read-only media to generate an 'easy'
read-write template.  For example:

    mount_mfs -s 16384 -C swap /var

Softlinks, devices, regular files, directories, and hardlinks are maintained.
Fifos and sockets are not copied.

16 years agoAdd cpdup to /bin (not /usr/bin), so we can start using it during boot
Matthew Dillon [Mon, 1 Dec 2003 02:20:14 +0000 (02:20 +0000)]
Add cpdup to /bin (not /usr/bin), so we can start using it during boot
to simplify things like diskless booting.

16 years agoAdd the MPIPE subsystem. This subsystem is used for 'pipelining' fixed-size
Matthew Dillon [Sun, 30 Nov 2003 20:14:18 +0000 (20:14 +0000)]
Add the MPIPE subsystem.  This subsystem is used for 'pipelining' fixed-size
allocations.  Pipelining is used to avoid lack-of-resource deadlocks by
still allowing resource allocations to 'block' by guarenteeing that an
already in-progress operation will soon free memory that will be immediately
used to satisfy the blocked resource.

Adjust the ATAold code to use the new mechanism and remove the code that
tried to back-off into PIO mode when resources were lacking.

16 years ago* s/FreeBSD/DragonFly at the boot2 prompt.
David Rhodus [Sun, 30 Nov 2003 17:04:35 +0000 (17:04 +0000)]
* s/FreeBSD/DragonFly at the boot2 prompt.

16 years ago* Prevent leakage of wired pages by setting start_entry
David Rhodus [Sat, 29 Nov 2003 18:56:22 +0000 (18:56 +0000)]
* Prevent leakage of wired pages by setting start_entry
during vm_map_wire().

16 years ago* Add quirk for LEXAR 256MB JUMPDRIVE
David Rhodus [Sat, 29 Nov 2003 15:23:33 +0000 (15:23 +0000)]
* Add quirk for LEXAR 256MB JUMPDRIVE

16 years agoFix bug in last commit (missing ..)
Matthew Dillon [Fri, 28 Nov 2003 19:32:41 +0000 (19:32 +0000)]
Fix bug in last commit (missing ..)

Submitted-by: YONETANI Tomokazu <qhwt@myrealbox.com>
16 years agoFix a DOS in rfork(). Disallow kernel-only flags.
Matthew Dillon [Thu, 27 Nov 2003 19:57:37 +0000 (19:57 +0000)]
Fix a DOS in rfork().  Disallow kernel-only flags.

Taken-from: FreeBSD-4.x kern_fork.c 1.72.2.16 and unistd.h 1.22.2.3

16 years agoCleanup POSIX real-time so the kernel compiles without the P1003_1B
Matthew Dillon [Thu, 27 Nov 2003 19:11:17 +0000 (19:11 +0000)]
Cleanup POSIX real-time so the kernel compiles without the P1003_1B
option.

Submitted-by: Joerg Sonnenberger <joerg@britannica.bec.de>
16 years agoAdd support for the ICH 4 mobile chipset.
Jeroen Ruigrok/asmodai [Wed, 26 Nov 2003 14:24:46 +0000 (14:24 +0000)]
Add support for the ICH 4 mobile chipset.

16 years agoTemporary hack out release.9, which creates the floppies.
Jeroen Ruigrok/asmodai [Wed, 26 Nov 2003 07:49:57 +0000 (07:49 +0000)]
Temporary hack out release.9, which creates the floppies.

16 years agoGet rid off the POSIX real-time extensions as well as the System V IPC and
Jeroen Ruigrok/asmodai [Tue, 25 Nov 2003 18:04:48 +0000 (18:04 +0000)]
Get rid off the POSIX real-time extensions as well as the System V IPC and
slip support.

16 years ago#include cleanups for lwkt_msgport.c and lwkt_thread.c... the committed
Matthew Dillon [Mon, 24 Nov 2003 23:56:07 +0000 (23:56 +0000)]
#include cleanups for lwkt_msgport.c and lwkt_thread.c... the committed
library name is libcaps, not liblwkt.

16 years agoSet the close-on-exec flag for CAPS client descriptors.
Matthew Dillon [Mon, 24 Nov 2003 21:32:33 +0000 (21:32 +0000)]
Set the close-on-exec flag for CAPS client descriptors.

16 years agoAdd /var/caps/root and /var/caps/users. IPC rendezvous services for root
Matthew Dillon [Mon, 24 Nov 2003 21:21:43 +0000 (21:21 +0000)]
Add /var/caps/root and /var/caps/users.  IPC rendezvous services for root
is implemented as a unix domain socket by libcaps in /var/caps/root/<name>.
IPC rendezvous services for users are implemented in
/var/caps/users/<uid>/<name>.  Allowing users to create services requires
manually creating a /var/caps/users/<uid> directory that is owned by that
uid.

16 years agoAdd a new library, libcaps, which is intended to encompass DragonFly-specific
Matthew Dillon [Mon, 24 Nov 2003 21:15:59 +0000 (21:15 +0000)]
Add a new library, libcaps, which is intended to encompass DragonFly-specific
core threading and IPC mechanisms.

As of this commit the library is very incomplete.  It works just well enough
to run the IPC test program unthreaded.  For the moment it is implemented
via unix domain sockets.  The IPC mechanism is eventually expected to be
moved directly into the kernel and use an upcall for replies.

16 years agoMore LWKT messaging cleanups. Isolate the default port functions by making
Matthew Dillon [Mon, 24 Nov 2003 20:46:05 +0000 (20:46 +0000)]
More LWKT messaging cleanups.  Isolate the default port functions by making
them static and rename lwkt_init_port() to lwkt_initport() to conform with
lwkt_initmsg().

16 years agoFix the OID_AUTO collision with static sysctl numbers. This can occur
Matthew Dillon [Sun, 23 Nov 2003 22:15:22 +0000 (22:15 +0000)]
Fix the OID_AUTO collision with static sysctl numbers.  This can occur
when things like DIVERT are turned on, because they use static oid's
larger then 100.  Change the minimum OID_AUTO oid from 100 to 256 (taken
from FreeBSD-5.x), and add the assignment scan code from FreeBSD-4.x
rather then using a static variable.

16 years agoNETISR_POLL cannot use isr 0. Use isr 1.
Matthew Dillon [Sun, 23 Nov 2003 20:22:59 +0000 (20:22 +0000)]
NETISR_POLL cannot use isr 0.  Use isr 1.

Bug reported by: TC Lewis <tfox@dimension-4.dnsalias.net>

16 years agoMake the 'bad isr' panics a little more verbose.
Matthew Dillon [Sun, 23 Nov 2003 00:28:01 +0000 (00:28 +0000)]
Make the 'bad isr' panics a little more verbose.

16 years agoChange $FreeBSD$ to $DragonFly$ on the output files.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 21:12:35 +0000 (21:12 +0000)]
Change $FreeBSD$ to $DragonFly$ on the output files.

16 years agoAlso revert the VI_UNLOCKED damage.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 21:11:31 +0000 (21:11 +0000)]
Also revert the VI_UNLOCKED damage.

16 years agoRemove KTR damage.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 21:01:50 +0000 (21:01 +0000)]
Remove KTR damage.

16 years agoAdd two more awk kernel build scripts from FreeBSD.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 20:00:37 +0000 (20:00 +0000)]
Add two more awk kernel build scripts from FreeBSD.

16 years agoAdd proper $FreeBSD$ identifier.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 19:58:48 +0000 (19:58 +0000)]
Add proper $FreeBSD$ identifier.

16 years agoRemove haveseen_iobase(), it is not in use in the kernel.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 19:48:32 +0000 (19:48 +0000)]
Remove haveseen_iobase(), it is not in use in the kernel.

This synchs with FreeBSD's 1.21 and 1.70.

16 years agoUse malloc() + M_ZERO instead of malloc() + bzero().
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 19:43:25 +0000 (19:43 +0000)]
Use malloc() + M_ZERO instead of malloc() + bzero().

Synchs with FreeBSD's 1.23.

16 years agoProperly spell compatible and compatibility.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 19:30:57 +0000 (19:30 +0000)]
Properly spell compatible and compatibility.

16 years ago * K&R function cleanup
Eirik Nygaard [Sat, 22 Nov 2003 11:38:13 +0000 (11:38 +0000)]
 * K&R function cleanup

16 years agoRemove the archaic wd(4) driver.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 09:51:45 +0000 (09:51 +0000)]
Remove the archaic wd(4) driver.

16 years agoRemove the archaic wd(4) driver and its dependencies.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 09:50:36 +0000 (09:50 +0000)]
Remove the archaic wd(4) driver and its dependencies.

Tested with: LINT

16 years agoUse unsigned integers for the counters, since they cannot be negative
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 08:39:46 +0000 (08:39 +0000)]
Use unsigned integers for the counters, since they cannot be negative
anyway.

Synchs with FreeBSD 1.5 and 1.7.

16 years agoSpell initialise correctly.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 08:16:45 +0000 (08:16 +0000)]
Spell initialise correctly.

Sync with FreeBSD's 1.6 (which is also a commit by me)

16 years agoAdd details on how to get a "checked out" source tree.
Jeroen Ruigrok/asmodai [Sat, 22 Nov 2003 07:51:14 +0000 (07:51 +0000)]
Add details on how to get a "checked out" source tree.

16 years agoWhen looking for files that have already been linked, strip off any
Matthew Dillon [Fri, 21 Nov 2003 23:30:42 +0000 (23:30 +0000)]
When looking for files that have already been linked, strip off any
path prefix components.

16 years agoDo some fairly major include file cleanups to further separate kernelland
Matthew Dillon [Fri, 21 Nov 2003 22:46:15 +0000 (22:46 +0000)]
Do some fairly major include file cleanups to further separate kernelland
from userland.

    * Do not allow userland to include sys/proc.h directly, it must use
      sys/user.h instead.   This is because sys/proc.h has a huge number
      of kernel header file dependancies.

    * Do cleanups and work in lwkt_thread.c and lwkt_msgport.c to allow
      these files to be directly compiled in an upcoming userland thread
      support library.

    * sys/lock.h is inappropriately included by a number of third party
      programs so we can't disallow its inclusion, but do not include
      any kernel structures unless _KERNEL or _KERNEL_STRUCTURES are
      defined.

    * <ufs/ufs/inode.h> is often included by userland to get at the
      on-disk inode structure.  Only include the on-disk components and do
      not include kernel structural components unless _KERNEL or
      _KERNEL_STRUCTURES is defined

    * Various usr.bin programs include sys/proc.h unnecessarily.

    * The slab allocator has no concept of malloc buckets.  Remove malloc
      buckets structures and VMSTAT support from the system.

    * Make adjustments to sys/thread.h and sys/msgport.h such that the
      upcoming userland thread support library can include these files
      directly rather then copy them.

    * Use low level __int types in sys/globaldata.h, sys/msgport.h,
      sys/slaballoc.h, sys/thread.h, and sys/malloc.h, instead of
      high level sys/types.h types, reducing include dependancies.

16 years ago'Building databases' has 10 seconds worth of sleeps that it doesn't need.
Matthew Dillon [Fri, 21 Nov 2003 18:44:53 +0000 (18:44 +0000)]
'Building databases' has 10 seconds worth of sleeps that it doesn't need.
Remove them.

16 years agoTweak the context data a bit and do some code cleanup. Save %edx as well
Matthew Dillon [Fri, 21 Nov 2003 08:32:49 +0000 (08:32 +0000)]
Tweak the context data a bit and do some code cleanup.  Save %edx as well
as %eax and %ecx so we can throw the upcall pointer into %edx, which makes
it possible to create self-contained context assembly code.  This also
improves performance by giving the context assembly (see
src/test/sysperf/upcall.S) easier access to the upcall structure.

It's also safer (though not critical) to have the kernel save all the
call-used registers when setting up for an upcall.

16 years agoAdd some comments to the upcall test code.
Matthew Dillon [Fri, 21 Nov 2003 07:04:20 +0000 (07:04 +0000)]
Add some comments to the upcall test code.

16 years agoAdd an upcall performance test program + example context function
Matthew Dillon [Fri, 21 Nov 2003 06:58:28 +0000 (06:58 +0000)]
Add an upcall performance test program + example context function
assembly code.

16 years agoAdd UPC_CRITADD, the value that crit_count must be increased or decreased
Matthew Dillon [Fri, 21 Nov 2003 06:41:58 +0000 (06:41 +0000)]
Add UPC_CRITADD, the value that crit_count must be increased or decreased
by.

16 years agoAdd a big whopping manual page for the upcall syscalls, upc_register and
Matthew Dillon [Fri, 21 Nov 2003 06:41:02 +0000 (06:41 +0000)]
Add a big whopping manual page for the upcall syscalls, upc_register and
friends.

16 years agoImplement an upcall mechanism to support userland LWKT. This mechanism will
Matthew Dillon [Fri, 21 Nov 2003 05:29:08 +0000 (05:29 +0000)]
Implement an upcall mechanism to support userland LWKT.  This mechanism will
allow multiple processes sharing the same VM space (aka clone/threading)
to send each other what are basically IPIs.

Two new system calls have been added, upc_register() and upc_control().
Documentation is forthcoming.  The upcalls are nicely abstracted and a
program can register as many as it wants up to the kernel limit (which
is 32 at the moment).

The upcalls will be used for passing asynch data from kernel to userland,
such as asynch syscall message replies, for thread preemption timing,
software interrupts, IPIs between virtual cpus (e.g. between the processes
that are sharing the single VM space).

16 years agoAdd a DECLARE_DUMMY_MODULE for snd_cmi to detect kld/static-kernel conflicts.
Matthew Dillon [Thu, 20 Nov 2003 22:14:27 +0000 (22:14 +0000)]
Add a DECLARE_DUMMY_MODULE for snd_cmi to detect kld/static-kernel conflicts.

16 years agoAdd a DECLARE_DUMMY_MODULE() so we can get linker_set module names
Matthew Dillon [Thu, 20 Nov 2003 22:07:34 +0000 (22:07 +0000)]
Add a DECLARE_DUMMY_MODULE() so we can get linker_set module names
for modules that normally use DRIVER_MODULE().  The problem is that
DRIVER_MODULE() will define names that do not match the module name,
so a DECLARE_DUMMY_MODULE() is needed for the kernel to be able to
figure out that a module has been statitically compiled in.

16 years ago * Make pkg_add fetch the packages from /packages-4-stable instead of
Eirik Nygaard [Thu, 20 Nov 2003 17:40:06 +0000 (17:40 +0000)]
 * Make pkg_add fetch the packages from /packages-4-stable instead of
   /packages-current so -r works again.

Reported by: Adam K Kirchhoff <adamk@voicenet.com>

16 years agoFix a bug which causes wrong filename being written into the syslog
Eirik Nygaard [Thu, 20 Nov 2003 14:32:17 +0000 (14:32 +0000)]
Fix a bug which causes wrong filename being written into the syslog
in the case when client sends request with RFC2347 options.

Obtained from: FreeBSD

16 years agoThis is a major cleanup of the LWKT message port code. The messaging code
Matthew Dillon [Thu, 20 Nov 2003 06:05:31 +0000 (06:05 +0000)]
This is a major cleanup of the LWKT message port code.  The messaging code
is getting closer to being directly useable by userland.  With these changes
message/port operations are now far better abstracted then they were before.

    * Stale fields have been removed from struct lwkt_msg.
    * lwkt_abortmsg() has been revamped to make it easier to support.
    * lwkt_waitmsg has been converted to a port function.
    * mp_*port() function fields have been renamed for better readability.
    * ms_cleanupmsg has been removed from struct lwkt_msg.
    * Union sysmsg is now struct sysmsg.
    * A copyout function has been added to struct sysmsg.
    * The system calls have been regenerated.

16 years agoAdjust nfs module loading to use nfs.ko (4.x style) rather then the
Matthew Dillon [Wed, 19 Nov 2003 20:11:58 +0000 (20:11 +0000)]
Adjust nfs module loading to use nfs.ko (4.x style) rather then the
separate client/server ko's that 5.x has.

Submitted-by: YONETANI Tomokazu <qhwt@myrealbox.com>
16 years agoAdd pkgwrap.c, which was missed in my last commit.
Hiten Pandya [Wed, 19 Nov 2003 15:19:45 +0000 (15:19 +0000)]
Add pkgwrap.c, which was missed in my last commit.

Obtained from: FreeBSD (RELENG_4)

16 years agoSupport for conflict (pkg_add -C) checking and pkg_tools (pkg_add -P).
Hiten Pandya [Wed, 19 Nov 2003 15:17:29 +0000 (15:17 +0000)]
Support for conflict (pkg_add -C) checking and pkg_tools (pkg_add -P).

While I am here, cleanup some local variables.  This commit unbreaks
installation of the docproj-{no}jadetex package, since ghostscript-gnu
makes use of the @cconflicts functionality.

Merged from: FreeBSD (RELENG_4)

16 years ago * Add DragonFly as an possibility to a case statement.
Eirik Nygaard [Wed, 19 Nov 2003 12:49:07 +0000 (12:49 +0000)]
 * Add DragonFly as an possibility to a case statement.

16 years ago * Added tabs instead of spaces for readability and consistency with NetBSD
Eirik Nygaard [Wed, 19 Nov 2003 10:32:45 +0000 (10:32 +0000)]
 * Added tabs instead of spaces for readability and consistency with NetBSD
   and FreeBSD.

16 years agoChange the system name from 'FreeBSD' to 'DragonFly'.
Matthew Dillon [Wed, 19 Nov 2003 01:53:16 +0000 (01:53 +0000)]
Change the system name from 'FreeBSD' to 'DragonFly'.

More missing freebsd->dragonfly glue for csu and libobjc

16 years agoChange the system name from 'FreeBSD' to 'DragonFly'.
Matthew Dillon [Wed, 19 Nov 2003 01:37:27 +0000 (01:37 +0000)]
Change the system name from 'FreeBSD' to 'DragonFly'.

Final cpp glue to define __DragonFly__ and __DragonFly_cc_version.  Note
that __FreeBSD__ and __FreeBSD_cc_version are being left intact.

16 years agoRedo the 'upgrade' target. Get rid of the old elf stuff and change the
Matthew Dillon [Wed, 19 Nov 2003 01:05:32 +0000 (01:05 +0000)]
Redo the 'upgrade' target.  Get rid of the old elf stuff and change the
definition of 'upgrade'.  Upgrade will not update all files that are
supposed to be 'static' (i.e. not modified by the user).  For example,
most /etc/rc* and most files in /etc/rc.d.

16 years agoAdd syscall4 (/tmp/sc4) perf test. This tests stat() overhead instead of
Matthew Dillon [Wed, 19 Nov 2003 00:59:19 +0000 (00:59 +0000)]
Add syscall4 (/tmp/sc4) perf test.  This tests stat() overhead instead of
getuid() syscall overhead.

16 years agoChange the system name from 'FreeBSD' to 'DragonFly'. Additional commits
Matthew Dillon [Wed, 19 Nov 2003 00:54:23 +0000 (00:54 +0000)]
Change the system name from 'FreeBSD' to 'DragonFly'.  Additional commits
to deal with gnuisms.

16 years agoChange the system name from 'FreeBSD' to 'DragonFly'. We are now officially
Matthew Dillon [Wed, 19 Nov 2003 00:51:38 +0000 (00:51 +0000)]
Change the system name from 'FreeBSD' to 'DragonFly'.  We are now officially
DragonFly 1.0-CURRENT.  The change is fairly straight forward but involves
adding support for the 'DragonFly' OS type in various gnu contributed pieces
(typically configure based), as well as compiler and BFD support for building
GCC and friends (basically just copied the FreeBSD files for DragonFly).

Additionally, hack the ports makefiles with UNAME_xxx environment variables
so ports builds think its still a FreeBSD-4.8 system.  Otherwise most of the
ports will fail.

16 years agoThis file needs sys/cdefs.h for __ extensions and such (similar to what
Matthew Dillon [Wed, 19 Nov 2003 00:42:30 +0000 (00:42 +0000)]
This file needs sys/cdefs.h for __ extensions and such (similar to what
FreeBSD-5.x does).  This will help the ports builds.

16 years agoAdd a .makeenv directive to make, which allows variables to be exported to
Matthew Dillon [Tue, 18 Nov 2003 23:49:54 +0000 (23:49 +0000)]
Add a .makeenv directive to make, which allows variables to be exported to
the environment.  This will be used to support certain ports hacks but it
will also be generally useful in the future.

16 years agoRC cleanups and minor bug fixes to support the uname change to DragonFly
Matthew Dillon [Tue, 18 Nov 2003 23:46:01 +0000 (23:46 +0000)]
RC cleanups and minor bug fixes to support the uname change to DragonFly

16 years agoTurn off CHECK_POINTS in mpboot.s. It was accidently left on which resulted
Matthew Dillon [Tue, 18 Nov 2003 05:52:26 +0000 (05:52 +0000)]
Turn off CHECK_POINTS in mpboot.s.  It was accidently left on which resulted
in ceratin SMP machine's BIOSes complaining about bad CMOS checksums.

Pointy hat with spikes to: Matt Dillon.

16 years agoSync TAILQ_FOREACH work from 5.x. The closer we can get this file to 5.x
Matthew Dillon [Tue, 18 Nov 2003 05:10:31 +0000 (05:10 +0000)]
Sync TAILQ_FOREACH work from 5.x.  The closer we can get this file to 5.x
the better.

16 years agoUse M_ZERO instead of manually bzero()ing memory allocated with malloc().
Matthew Dillon [Tue, 18 Nov 2003 05:02:40 +0000 (05:02 +0000)]
Use M_ZERO instead of manually bzero()ing memory allocated with malloc().

16 years agoCorrect several bugs. If we fail to add a device be sure to delete its kobj.
Matthew Dillon [Tue, 18 Nov 2003 04:58:19 +0000 (04:58 +0000)]
Correct several bugs.  If we fail to add a device be sure to delete its kobj.
Remove a double kobj_init() call in make_device().  Replace a manual
free() with a kobj_delete() call, and delete a kobj before reinitializing
it.

16 years agoBackout part of 1.16. It is not necessary to align the stack at this
Matthew Dillon [Tue, 18 Nov 2003 01:15:42 +0000 (01:15 +0000)]
Backout part of 1.16.  It is not necessary to align the stack at this
point.  A hack to align the stack already exists in lib/csu/i386-elf/crt1.c.

After-Discussions-With: Bruce Evans <bde@zeta.org.au>

16 years agoclarify the solution for typical build snafus in UPDATING.
Matthew Dillon [Tue, 18 Nov 2003 00:34:20 +0000 (00:34 +0000)]
clarify the solution for typical build snafus in UPDATING.

16 years agoFix misplacement of code. Due to additional DF code everything got
Jeroen Ruigrok/asmodai [Mon, 17 Nov 2003 21:24:15 +0000 (21:24 +0000)]
Fix misplacement of code.  Due to additional DF code everything got
shifted one position, including the main condition, which was wrong.

16 years agoFix linux_getrlimit() and linux_old_getrlimit() which weren't copyout()'ing
David P. Reese, Jr. [Mon, 17 Nov 2003 05:11:11 +0000 (05:11 +0000)]
Fix linux_getrlimit() and linux_old_getrlimit() which weren't copyout()'ing
the right length.  This fixes the reported hang when running `java -version`
with linux-sun-jdk1.4.2.

Problem reported by: Keneth Culver <culverk@sweetdreamsracing.biz>

16 years agoFactor out the object system from new-bus so that it can be used by
Jeroen Ruigrok/asmodai [Mon, 17 Nov 2003 00:54:40 +0000 (00:54 +0000)]
Factor out the object system from new-bus so that it can be used by
non-device code.

Re-implement the method dispatch to improve efficiency. The new system
takes about 40ns for a method dispatch on a 300Mhz PII which is only 10ns
slower than a direct function call on the same hardware.

This is all based on Doug Rabson's work in April and May of 2000.

16 years agoAdd forgotten semi-colon.
Jeroen Ruigrok/asmodai [Sun, 16 Nov 2003 22:30:49 +0000 (22:30 +0000)]
Add forgotten semi-colon.

16 years agoFix a missing backslashed in the 1.9 commit.
Matthew Dillon [Sun, 16 Nov 2003 22:27:49 +0000 (22:27 +0000)]
Fix a missing backslashed in the 1.9 commit.

16 years agoCleanup aux args and 32-byte align the initial user stack pointer. Note that
Matthew Dillon [Sun, 16 Nov 2003 19:32:31 +0000 (19:32 +0000)]
Cleanup aux args and 32-byte align the initial user stack pointer.  Note that
newer GCCs use masking ops on the stack pointer and do not need an aligned
stack pointer, but older GCCs will benefit and, besides, it doesn't hurt.

Submitted-by: Alexander Leidinger
16 years agoEnable Conrad parallel port radio clock support in ntp by default. No reason
Matthew Dillon [Sun, 16 Nov 2003 19:20:31 +0000 (19:20 +0000)]
Enable Conrad parallel port radio clock support in ntp by default.  No reason
not to!

Submitted-by: Alexander Leidinger <reject@Leidinger.net>
16 years agoCleanup the linux exec code to match other recent fixes to the exec code.
Matthew Dillon [Sun, 16 Nov 2003 19:08:27 +0000 (19:08 +0000)]
Cleanup the linux exec code to match other recent fixes to the exec code.

16 years ago * K&R function cleanup
Eirik Nygaard [Sun, 16 Nov 2003 15:17:36 +0000 (15:17 +0000)]
 * K&R function cleanup

16 years ago * K&R function cleanup
Eirik Nygaard [Sun, 16 Nov 2003 14:10:46 +0000 (14:10 +0000)]
 * K&R function cleanup

16 years ago * K&R function cleanup
Eirik Nygaard [Sun, 16 Nov 2003 11:51:15 +0000 (11:51 +0000)]
 * K&R function cleanup

16 years agoRework the logic in the kernel config files.
Jeroen Ruigrok/asmodai [Sun, 16 Nov 2003 10:32:46 +0000 (10:32 +0000)]
Rework the logic in the kernel config files.
Remove all build magic for the module interface methods from the 'files'
file and move it to the Makefile where it belongs.

Based on: Makefile.i386 1.181 and files 1.348
Tested with: LINT

16 years agoAdd FreeBSD's makeobjops.awk.
Jeroen Ruigrok/asmodai [Sun, 16 Nov 2003 10:30:06 +0000 (10:30 +0000)]
Add FreeBSD's makeobjops.awk.

16 years agoFix a bug in the last fix to a prior locking issue. A vdrop() was
Matthew Dillon [Sun, 16 Nov 2003 04:14:45 +0000 (04:14 +0000)]
Fix a bug in the last fix to a prior locking issue.  A vdrop() was
missing.

16 years agopanic() normally tries to sync. Add a sysctl to control the behavior in
Matthew Dillon [Sun, 16 Nov 2003 02:41:46 +0000 (02:41 +0000)]
panic() normally tries to sync.  Add a sysctl to control the behavior in
order to facilitate debugging.

Submitted-by: YONETANI Tomokazu <qhwt@myrealbox.com>
16 years agoCorrect bugs introduced in the last syscall separation commit. The
Matthew Dillon [Sun, 16 Nov 2003 02:37:39 +0000 (02:37 +0000)]
Correct bugs introduced in the last syscall separation commit.  The
argument list for shell scripts was not being properly rewritten, corrupting
the argv list and environment.

16 years agoFix a bug in signal translation introduced in last revision. This effects
David P. Reese, Jr. [Sun, 16 Nov 2003 01:50:54 +0000 (01:50 +0000)]
Fix a bug in signal translation introduced in last revision.  This effects
linux_signal() and linux_rt_sigaction().

16 years ago * K&R function cleanup
Eirik Nygaard [Sat, 15 Nov 2003 23:33:35 +0000 (23:33 +0000)]
 * K&R function cleanup

16 years agoConvert files from DOS to Unix.
Jeroen Ruigrok/asmodai [Sat, 15 Nov 2003 21:12:53 +0000 (21:12 +0000)]
Convert files from DOS to Unix.

Found by: makeobjops.awk and vim

16 years agoMisc cleanups to take care of GCC3.x warnings. Missing 'U' and 'LL'
Matthew Dillon [Sat, 15 Nov 2003 21:05:44 +0000 (21:05 +0000)]
Misc cleanups to take care of GCC3.x warnings.  Missing 'U' and 'LL'
postfixes on large unsigned or 64 bit constants, non-storage structural
declarations embedded in structures, deprecated use of __FUNCTION__,
missing 'break' statements in the last switch case, goto label ops where
the label occurs just before an end-brace (many of which appear to be
fixable with 'break' or 'continue' instead and existed simply due to
programmer-paranoia), garbage data in #endif lines that was not commented
out.  GCC3 also caught some argument count issues in kernel printfs.

Many of these (obvious) fixes are similar to or copied from 5.x.

Also fix a few other minor issues such as certain drivers declaring a
proc pointer instead of a thread pointer.

Move -ffreestanding from CWARNFLAGS to CFLAGS.  It doesn't belong in
CWARNFLAGS.

16 years ago * K&R function cleanup
Eirik Nygaard [Sat, 15 Nov 2003 20:33:43 +0000 (20:33 +0000)]
 * K&R function cleanup