]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoRelocate sys/systm.h #include to quiet warning.
jhb [Mon, 11 Sep 2000 05:19:37 +0000 (05:19 +0000)]
Relocate sys/systm.h #include to quiet warning.

24 years agoForced commit to note that the previous commit only applied to the alpha
jhb [Mon, 11 Sep 2000 05:12:54 +0000 (05:12 +0000)]
Forced commit to note that the previous commit only applied to the alpha
architecture.  Also, forgot an acknowledgement:

Detective help from: wpaul

24 years agoAdd a nasty hack to get remote kernel gdb working from ddb. ddb would
jhb [Mon, 11 Sep 2000 04:33:36 +0000 (04:33 +0000)]
Add a nasty hack to get remote kernel gdb working from ddb.  ddb would
complain before that a suitable gdb port had not been setup because gdbdev
was NULL.  This abuses the fact that the gdb port is hard-coded to the
address normally assigned to sio1 and thus hard-codes in sio1 as the gdb
port.  Yuck.

24 years agoWhen doing statistics for statclock on other CPU's, use the other CPUs'
jhb [Mon, 11 Sep 2000 04:10:29 +0000 (04:10 +0000)]
When doing statistics for statclock on other CPU's, use the other CPUs'
idleproc pointers instead of our own for comparisons.

Submitted by: tegge

24 years ago- Use RFHIGHPID when creating the kthread to get a more sensible pid.
jhb [Mon, 11 Sep 2000 04:09:08 +0000 (04:09 +0000)]
- Use RFHIGHPID when creating the kthread to get a more sensible pid.
- Don't fake walking a tailq.  Instead, use a while loop that pulls items
  off the head of the queue while the queue is not empty.

24 years agoaio processes need to have the Giant mutex before doing work.
jhb [Mon, 11 Sep 2000 04:06:48 +0000 (04:06 +0000)]
aio processes need to have the Giant mutex before doing work.

Submitted by: tegge

24 years agoAdd malloc_mtx to protect malloc and friends, so that they're thread-safe.
jasone [Mon, 11 Sep 2000 02:32:30 +0000 (02:32 +0000)]
Add malloc_mtx to protect malloc and friends, so that they're thread-safe.

Reviewed by: peter

24 years agoAdd scant documentation for msleep.
jake [Mon, 11 Sep 2000 00:52:31 +0000 (00:52 +0000)]
Add scant documentation for msleep.

24 years agoRename tsleep to msleep and add a mutex argument, which is
jake [Mon, 11 Sep 2000 00:20:02 +0000 (00:20 +0000)]
Rename tsleep to msleep and add a mutex argument, which is
released before sleeping and re-acquired before msleep
returns.  A compatibility cpp macro has been provided for
tsleep to avoid changing all occurences of it in the kernel.

Remove an assertion that the Giant mutex be held before
calling tsleep or asleep.

This is intended to serve the same purpose as condition
variables, but does not preclude their addition in the
future.

Approved by: jasone
Obtained from: BSD/OS

24 years agoAllow interrupt threads to run during shutdown. This should fix the
jasone [Sun, 10 Sep 2000 23:06:50 +0000 (23:06 +0000)]
Allow interrupt threads to run during shutdown.  This should fix the
"dirty buffers during shutdown" problem introduced by the SMPng commit.

Submitted by: tegge, cg

24 years agoSet h_errno when an error is encountered.
nectar [Sun, 10 Sep 2000 19:06:05 +0000 (19:06 +0000)]
Set h_errno when an error is encountered.

PR: bin/21092
Submitted by: Alexander Kabaev <ak03@gte.com>

24 years agoMake default interface work.
ume [Sun, 10 Sep 2000 18:18:10 +0000 (18:18 +0000)]
Make default interface work.

Obtained from: KAME

24 years agoFix a few style oddities.
green [Sun, 10 Sep 2000 18:04:12 +0000 (18:04 +0000)]
Fix a few style oddities.

24 years agoFix a goof in timevaldiff.
green [Sun, 10 Sep 2000 18:03:46 +0000 (18:03 +0000)]
Fix a goof in timevaldiff.

24 years agoFix this so that we actually define HAVE_PNP when its available.
dfr [Sun, 10 Sep 2000 17:11:27 +0000 (17:11 +0000)]
Fix this so that we actually define HAVE_PNP when its available.

24 years agoUpdate to build both bktr and bktr_mem modules
roger [Sun, 10 Sep 2000 15:40:20 +0000 (15:40 +0000)]
Update to build both bktr and bktr_mem modules

24 years agoRemove the manipulation of the Giant mutex from the interrupt entry
dfr [Sun, 10 Sep 2000 15:39:23 +0000 (15:39 +0000)]
Remove the manipulation of the Giant mutex from the interrupt entry
points. This can't work right anyway and needs to happen in the irq thread.

24 years agoMoved boot0cfg into IBM-PC only section (MACHINE=="i386").
kato [Sun, 10 Sep 2000 15:33:07 +0000 (15:33 +0000)]
Moved boot0cfg into IBM-PC only section (MACHINE=="i386").

Pointed out by: nyan

24 years agoUse '&' instead of '%' to calculate the new value for ktr_idx.
dfr [Sun, 10 Sep 2000 14:36:55 +0000 (14:36 +0000)]
Use '&' instead of '%' to calculate the new value for ktr_idx.

24 years agopmcd_value is actually a quad_t.
dwmalone [Sun, 10 Sep 2000 14:35:20 +0000 (14:35 +0000)]
pmcd_value is actually a quad_t.

24 years agoUpdate to driver 2.15.
roger [Sun, 10 Sep 2000 14:34:08 +0000 (14:34 +0000)]
Update to driver 2.15.
Main change is the addition of the bktr_mem module.

This holds onto the bktr driver's contiguously allocated memory
when the bktr driver is unloaded and reloaded.

This has to be done because it is virtually impossible to get
contiguous memory once a system is running.

Also tidied up the use of SMBUS, added a new Hauppauge tuner type (0x2c)
and a new Flyvideo vendor ID.

24 years agoProvide keyboard entropy harvesting for PCVT users.
markm [Sun, 10 Sep 2000 14:31:40 +0000 (14:31 +0000)]
Provide keyboard entropy harvesting for PCVT users.

24 years agoHarvest mouse events for the entropy device in a better place. In the
markm [Sun, 10 Sep 2000 14:27:17 +0000 (14:27 +0000)]
Harvest mouse events for the entropy device in a better place. In the
new location, all mouse events are harvested, not just the ones being
written out to moused(8). This means that mouse entropy is harvested
at the consoles as well as in X.

24 years agoThe entropy driver module has changed name.
markm [Sun, 10 Sep 2000 13:58:58 +0000 (13:58 +0000)]
The entropy driver module has changed name.

24 years agoForced commit.
markm [Sun, 10 Sep 2000 13:56:45 +0000 (13:56 +0000)]
Forced commit.

Enough folks complained about the name of the entropy device module, so
I agreed to change it from "randomdev" to just plain "random".

This needs to be changed in loader.conf as well.

24 years agoMove the include of <sys/systm.h> so that KTR gets a declaration for
dfr [Sun, 10 Sep 2000 13:54:52 +0000 (13:54 +0000)]
Move the include of <sys/systm.h> so that KTR gets a declaration for
snprintf().

24 years agoLarge upgrade to the entropy device; mainly inspired by feedback
markm [Sun, 10 Sep 2000 13:52:19 +0000 (13:52 +0000)]
Large upgrade to the entropy device; mainly inspired by feedback
from many folk.

o The reseed process is now a kthread. With SMPng, kthreads are
  pre-emptive, so the annoying jerkiness of the mouse is gone.

o The data structures are protected by mutexes now, not splfoo()/splx().

o The cryptographic routines are broken out into their own subroutines.
  this facilitates review, and possible replacement if that is ever
  found necessary.

Thanks to: kris, green, peter, jasone, grog, jhb
Forgotten to thank: You know who you are; no offense intended.

24 years agoBump up version as a result of the recent changes to kernel path,
dcs [Sun, 10 Sep 2000 13:51:44 +0000 (13:51 +0000)]
Bump up version as a result of the recent changes to kernel path,
and boot-conf&boot semantic changes.

Also, make it 1.0.

Reminded by: peter (even though he doesn't know it)

24 years agoBump up version as a result of the recent changes to kernel path,
dcs [Sun, 10 Sep 2000 13:51:31 +0000 (13:51 +0000)]
Bump up version as a result of the recent changes to kernel path,
and boot-conf&boot semantic changes.

Reminded by: peter (even though he doesn't know it)

24 years agoChange NOFORTH comment character from # to \ followed by space,
dcs [Sun, 10 Sep 2000 13:48:51 +0000 (13:48 +0000)]
Change NOFORTH comment character from # to \ followed by space,
to make things more interchangeable between it and the FORTH case.

Perhaps requiring the space is a bit too much, but...

Nothing in the tree seems to produce loader.rc files with comment
line, at this time.

24 years agoFix printf warnings in CTRx calls.
dfr [Sun, 10 Sep 2000 13:34:35 +0000 (13:34 +0000)]
Fix printf warnings in CTRx calls.

24 years agoMove the include of <sys/systm.h> so that KTR gets a declaration for
dfr [Sun, 10 Sep 2000 13:33:31 +0000 (13:33 +0000)]
Move the include of <sys/systm.h> so that KTR gets a declaration for
snprintf().

24 years agoFix printf warnings.
dfr [Sun, 10 Sep 2000 13:32:39 +0000 (13:32 +0000)]
Fix printf warnings.

24 years agoFix printf warnings in CTRx calls.
dfr [Sun, 10 Sep 2000 13:04:20 +0000 (13:04 +0000)]
Fix printf warnings in CTRx calls.

24 years agoUpdate to work with the current version of KTR.
dfr [Sun, 10 Sep 2000 13:03:24 +0000 (13:03 +0000)]
Update to work with the current version of KTR.

24 years agoOnly build PnP parts if the platform supports PnP.
dfr [Sun, 10 Sep 2000 12:15:30 +0000 (12:15 +0000)]
Only build PnP parts if the platform supports PnP.

24 years agoRemove files no longer present in OpenSSH 2.2.0 and beyond
kris [Sun, 10 Sep 2000 10:26:07 +0000 (10:26 +0000)]
Remove files no longer present in OpenSSH 2.2.0 and beyond

24 years agoUpdate for OpenSSH 2.2.0
kris [Sun, 10 Sep 2000 09:43:29 +0000 (09:43 +0000)]
Update for OpenSSH 2.2.0

24 years agoResolve conflicts and update for OpenSSH 2.2.0
kris [Sun, 10 Sep 2000 09:35:38 +0000 (09:35 +0000)]
Resolve conflicts and update for OpenSSH 2.2.0

Reviewed by: gshapiro, peter, green

24 years agoUpdates to the ntp pll from John Hay.
phk [Sun, 10 Sep 2000 09:13:34 +0000 (09:13 +0000)]
Updates to the ntp pll from John Hay.

Submitted by: jhay

24 years agoBump __FreeBSD_version to 500013 after SMPng step 1 hit the tree.
peter [Sun, 10 Sep 2000 08:43:04 +0000 (08:43 +0000)]
Bump __FreeBSD_version to 500013 after SMPng step 1 hit the tree.
If anything deserves to bump the version, surely this does.

24 years agoThis commit was generated by cvs2svn to compensate for changes in r65668,
kris [Sun, 10 Sep 2000 08:31:17 +0000 (08:31 +0000)]
This commit was generated by cvs2svn to compensate for changes in r65668,
which included commits to RCS files with non-trunk default branches.

24 years agoInitial import of OpenSSH post-2.2.0 snapshot dated 2000-09-09
kris [Sun, 10 Sep 2000 08:31:17 +0000 (08:31 +0000)]
Initial import of OpenSSH post-2.2.0 snapshot dated 2000-09-09

24 years agoNew release notes: ipfilter->3.4.9, new kernel location, FFS snapshots.
bmah [Sun, 10 Sep 2000 06:55:27 +0000 (06:55 +0000)]
New release notes:  ipfilter->3.4.9, new kernel location, FFS snapshots.

Add note to Alpha relnotes (accidentally omitted) on softupdates licensing.

24 years agoChange variable naming to be consistent with the rest of VFS code.
bp [Sun, 10 Sep 2000 03:46:12 +0000 (03:46 +0000)]
Change variable naming to be consistent with the rest of VFS code.
Reduce number of indirections by using already fetched values.

24 years agoBack out the addition of malloc_mtx. It was incompletely conceived, and
jasone [Sun, 10 Sep 2000 01:54:15 +0000 (01:54 +0000)]
Back out the addition of malloc_mtx.  It was incompletely conceived, and
will be done correctly in the future.

24 years agoBackout last commit. It was wrong.. *sigh*
ps [Sun, 10 Sep 2000 01:17:47 +0000 (01:17 +0000)]
Backout last commit.  It was wrong..  *sigh*

24 years agoinclude string.h to silence a warning.
ps [Sun, 10 Sep 2000 01:10:15 +0000 (01:10 +0000)]
include string.h to silence a warning.

24 years agoNuke RSAREF support from orbit.
kris [Sun, 10 Sep 2000 00:09:37 +0000 (00:09 +0000)]
Nuke RSAREF support from orbit.

It's the only way to be sure.

24 years agoStyle cleanups. No functional changes.
jasone [Sat, 9 Sep 2000 23:18:48 +0000 (23:18 +0000)]
Style cleanups.  No functional changes.

24 years agoAdd file and line arguments to WITNESS_ENTER() and WITNESS_EXIT, since
jasone [Sat, 9 Sep 2000 22:43:22 +0000 (22:43 +0000)]
Add file and line arguments to WITNESS_ENTER() and WITNESS_EXIT, since
__FILE__ and __LINE__ don't get expanded usefully in inline functions.

Add const to all witness*() arguments that are filenames.

24 years agoAdd a mutex to the malloc interfaces so that it can safely be called
jasone [Sat, 9 Sep 2000 22:27:35 +0000 (22:27 +0000)]
Add a mutex to the malloc interfaces so that it can safely be called
without owning the Giant lock.

24 years agoRemove a workaround for a long-fixed bug in fetch(1).
bmah [Sat, 9 Sep 2000 21:45:19 +0000 (21:45 +0000)]
Remove a workaround for a long-fixed bug in fetch(1).
Update URL for on-line Ports Collection INDEX file.

24 years agodisable 16bit mono support- this will be handled by software conversion to
cg [Sat, 9 Sep 2000 21:31:06 +0000 (21:31 +0000)]
disable 16bit mono support- this will be handled by software conversion to
stereo as hardware mono is very noisy

24 years agopkg_version.pl now understands the new package/port numbering scheme
bmah [Sat, 9 Sep 2000 21:28:06 +0000 (21:28 +0000)]
pkg_version.pl now understands the new package/port numbering scheme
introduced by version 1.349 of ports/Mk/bsd.port.mk and originally
submitted by kris.

In particular, it understands the $PORTREVISION (FreeBSD-specific changes
or patches to a port) and $PORTEPOCH (for re-sorting version numbers
when not used or when broken).

24 years agoadd 16bit mono/stereo conversion feeder
cg [Sat, 9 Sep 2000 21:24:03 +0000 (21:24 +0000)]
add 16bit mono/stereo conversion feeder
prefer feeder chains of length 1 over length 2

24 years agodetach support
cg [Sat, 9 Sep 2000 19:21:04 +0000 (19:21 +0000)]
detach support
remove un-needed setdir functions
add bus_teardown_intr calls where necessary
destroy our dma tags where necessary
destroy ac97 before releasing resources

24 years agoForget to include sysctl.h
alfred [Sat, 9 Sep 2000 18:47:46 +0000 (18:47 +0000)]
Forget to include sysctl.h

Submitted by: des

24 years agoProvide correct information regarding "packet" option default.
rnordier [Sat, 9 Sep 2000 18:30:48 +0000 (18:30 +0000)]
Provide correct information regarding "packet" option default.

PR:            20936
Originated by: obrien

24 years agoUpon reflection, I decided that bootfile must have priority over kernel
dcs [Sat, 9 Sep 2000 18:20:00 +0000 (18:20 +0000)]
Upon reflection, I decided that bootfile must have priority over kernel
as the kernel name. The one very unfortunate consequence is that kernel
as an absolute path loses the priority. It will only be tried after
/boot/${kernel}/${bootfile}. I'll see what can be done about it later.

24 years agoCorrect BSD/OS slice type.
rnordier [Sat, 9 Sep 2000 18:05:22 +0000 (18:05 +0000)]
Correct BSD/OS slice type.

PR:           21099
Submitted by: Alan Clegg <abc@bsdi.com>

24 years agoAdd a comment, that a LINT file can be produced from NOTES via
alex [Sat, 9 Sep 2000 16:33:48 +0000 (16:33 +0000)]
Add a comment, that a LINT file can be produced from NOTES via
``make LINT''.

Reviewed by: nbm via IRC

24 years agoLINT -> NOTES
alex [Sat, 9 Sep 2000 16:07:15 +0000 (16:07 +0000)]
LINT -> NOTES

24 years agoadd attrbute(packed) to union def with specific align constraitn.
itojun [Sat, 9 Sep 2000 15:56:46 +0000 (15:56 +0000)]
add attrbute(packed) to union def with specific align constraitn.
move file static variable to auto variable, make in6_cksum() work better in
kernel-MP environment.  sync with kame.

From: Alfred Perlstein <bright@wintelcom.net>

24 years agoInclude libfetch in the includes target.
des [Sat, 9 Sep 2000 14:37:06 +0000 (14:37 +0000)]
Include libfetch in the includes target.

24 years agoRemove unused variables.
des [Sat, 9 Sep 2000 14:35:35 +0000 (14:35 +0000)]
Remove unused variables.

24 years agoAdd stat, uptime and version.
des [Sat, 9 Sep 2000 11:44:58 +0000 (11:44 +0000)]
Add stat, uptime and version.
Note that version currently returns the first line of the version string
from vers.c, which is not quite what a Linux system would return.

24 years agoAdd code to devname(3) so it can find the names of devices which
phk [Sat, 9 Sep 2000 11:39:59 +0000 (11:39 +0000)]
Add code to devname(3) so it can find the names of devices which
were not present when dev_mkdb(8) was run.

First the dev_mkdb(8) database is searched, this caters for non-DEVFS
cases where people have renamed a device.

If that fails we ask the kernel using sysctl kern.devname if the device
driver has put a name in the dev_t.  This covers DEVFS cloned devices.

If that also fails we format a string which isn't entirely useless.

24 years agoOverhaul of AS2[01]0[A] description.
wilko [Sat, 9 Sep 2000 10:02:39 +0000 (10:02 +0000)]
Overhaul of AS2[01]0[A] description.

24 years agoFirst tackle at trying to handle the New Deal on kernels.
dcs [Sat, 9 Sep 2000 04:52:34 +0000 (04:52 +0000)]
First tackle at trying to handle the New Deal on kernels.

Load the first of the following kernels to be found:

${kernel} if ${kernel} is an absolute path
/boot/${kernel}/${kernel}
/boot/${kernel}/${bootfile}
${kernel}/${kernel}
${kernel}/${bootfile}
${kernel}
${bootfile}

The last instance of ${kernel} and ${bootfile} will be treated as a
list of semicolon separated file names, and each will be tried in turn,
from left to right.

Also, for each filename loader(8) will try filename, filename.ko,
filename.gz, filename.ko.gz, in that order, but that's not related
to this code.

This resulted in a major reorganization of the code, and much of what
was accumulating on loader.4th was rightly transfered to support.4th.

The semantics of boot-conf and boot also changed. Both will try to load
a kernel the same as above.

After a kernel was loaded, the variable module_path may get changed. Such
change will happen if the kernel was found with a directory prefix. In
that case, the module path will be set to ${directory};${module_path}.

Next, the modules are loaded as usual.

This is intended so kernel="xyzzy" in /boot/loader.conf will load
/boot/xyzzy/kernel.ko, load system modules from /boot/xyzzy/, and
load third party modules from /boot/modules or /modules. If that doesn't
work, it's a bug.

Also, fix a breakage of "boot" which was recently introduced. Boot without
any arguments would fail. No longer. Also, boot will only unload/reload
if the first argument is a path. If no argument exists or the first
argument is a flag, boot will use whatever is already loaded. I hope this
is POLA. That behavior is markedly different from that of boot-conf, which
will always unload/reload.

The semantics introduced here are experimental. Even if the code works,
we might decide this is not the prefered behavior. If you feel so, send
your feedback. (Yeah, this belongs in a HEADS UP or something, but I've
been working for the past 16 hours on this stuff, so gimme a break.)

24 years agoUSA_RESIDENT is no longer required for buildworld, do not force it.
peter [Sat, 9 Sep 2000 04:42:34 +0000 (04:42 +0000)]
USA_RESIDENT is no longer required for buildworld, do not force it.

24 years agoAdd missing \'s to multline macros used for assertions.
jhb [Sat, 9 Sep 2000 00:14:27 +0000 (00:14 +0000)]
Add missing \'s to multline macros used for assertions.

24 years agoActivate hesinfo.
nectar [Fri, 8 Sep 2000 23:35:49 +0000 (23:35 +0000)]
Activate hesinfo.

Noticed by: Don Lewis <Don.Lewis@tsc.tdk.com>

24 years agoNote 3C556/3C556B support in the xl(4) driver and subsequent
bmah [Fri, 8 Sep 2000 22:13:53 +0000 (22:13 +0000)]
Note 3C556/3C556B support in the xl(4) driver and subsequent
MFC.

24 years agoRename mtx_enter(), mtx_try_enter(), and mtx_exit() and wrap them with cpp
jasone [Fri, 8 Sep 2000 21:48:06 +0000 (21:48 +0000)]
Rename mtx_enter(), mtx_try_enter(), and mtx_exit() and wrap them with cpp
macros that expand to pass filename and line number information.  This is
necessary since we're using inline functions instead of macros now.

Add const to the filename pointers passed througout the mtx and witness
code.

24 years agoUse inline functions instead of macros for mtx_enter(), mtx_try_enter(),
jasone [Fri, 8 Sep 2000 21:47:29 +0000 (21:47 +0000)]
Use inline functions instead of macros for mtx_enter(), mtx_try_enter(),
and mtx_exit().  This change tracks the i386 version.

Rename mtx_enter(), mtx_try_enter(), and mtx_exit() and wrap them with cpp
macros that expand to pass filename and line number information.  This is
necessary since we're using inline functions instead of macros now.

Add const to the filename pointers passed througout the mtx and witness
code.

24 years agoUpdate boot and boot-conf descriptions to reflect new and old changes.
dcs [Fri, 8 Sep 2000 21:39:31 +0000 (21:39 +0000)]
Update boot and boot-conf descriptions to reflect new and old changes.
Add a warning in loader(8) that boot might be changed by loader.4th.

24 years agoEnhance boot-conf.
dcs [Fri, 8 Sep 2000 21:11:57 +0000 (21:11 +0000)]
Enhance boot-conf.

Now boot-conf can also receive parameters to be passed to the kernel
being booted. The syntax is the same as in the boot command, so one
boots /kernel.OLD in single-user mode by typing:

boot-conf /kernel.OLD -s   instead of
boot-conf -s /kernel.OLD

The syntax still supports use of directory instead of file name, so

boot-conf kernel.OLD -s

may be used to boot /boot/kernel.OLD/kernel.ko in single-user mode.

Notice that if one passes a flag to boot-conf, it will override the
flags set in .conf files, but only for that invocation. If the user
aborts the countdown and tries again without passing any flags, the
flags set in .conf files will be used.

Some factorization was done in the process of enhancing boot-conf,
as it has been growing steadly as features are getting added, becoming
too big for a Forth word. It still could do with more factorization,
as a matter of fact.

Override the builtin "boot" with something based on boot-conf. It will
behave exactly like boot-conf, but booting directly instead of going
through autoboot.

Since we are now pairing kernel and module set in the same directory,
this change to boot makes sense.

24 years agoRemove an unneeded extern declaration of cp_time.
jhb [Fri, 8 Sep 2000 20:18:29 +0000 (20:18 +0000)]
Remove an unneeded extern declaration of cp_time.

24 years agoStrictly speaking, this works. It enumarates the PnP devices, and
dcs [Fri, 8 Sep 2000 17:13:24 +0000 (17:13 +0000)]
Strictly speaking, this works. It enumarates the PnP devices, and
load the modules needed according to a file relating module names
(actually, _file_ names, not really modules -- the dependency
stuff is not exported to loader's UI) to PnP IDs.

But it still lacks a number of desired features, and it's too crude
for my tastes. But since I don't have time to work on it, it might
be preferable to make it available to those who might. It's not
installed by default, much less loaded. In fact, it wouldn't even
had a copyright message (who? me? assume responsibility for _this_?),
if the cvs commit hadn't aborted for lack of $FreeBSD$, and I decided
to just cut&paste the stuff from elsewhere.

24 years agoAdd the infrastructure necessary to handle PnP from a Forth script.
dcs [Fri, 8 Sep 2000 17:03:53 +0000 (17:03 +0000)]
Add the infrastructure necessary to handle PnP from a Forth script.

Also, export the file_findfile() function. Again, this is taken from
work in progress but frozen for the time being. Since it works, I'd
rather commit and remove any uglyness later than hide it on my tree.

24 years agoFix an error message which was using the wrong variable to get the
dcs [Fri, 8 Sep 2000 16:58:31 +0000 (16:58 +0000)]
Fix an error message which was using the wrong variable to get the
kernel name from.

24 years agoAdd constructors to crude structure support. Rework some of the
dcs [Fri, 8 Sep 2000 16:57:28 +0000 (16:57 +0000)]
Add constructors to crude structure support. Rework some of the
code into a more modular interface, with hidden vocabularies and
such. Remove the need to a lot of ugly initialization.

Also, add a few structure definitions, from stuff used on the C
part of loader. Some of this will disappear, and the crude structure
support will most likely be replaced by full-blown OOP support
already present on FICL, but not installed by default. But it was
getting increasingly inconvenient to keep this separate on my tree,
and I already lost lots of work once because of the hurdles, so
commit this.

Anyway, it makes support.4th more structured, and I'm not proceeding
with the work on it any time soon, unfortunately.

24 years agoMake the pnp structure a global variable, so it can be used elsewhere.
dcs [Fri, 8 Sep 2000 16:51:29 +0000 (16:51 +0000)]
Make the pnp structure a global variable, so it can be used elsewhere.

24 years agoFix autoboot. Now autoboot *always* show the correct kernel name. It
dcs [Fri, 8 Sep 2000 16:47:05 +0000 (16:47 +0000)]
Fix autoboot. Now autoboot *always* show the correct kernel name. It
gets the name from the environment variable kernelname, which is set
when a kernel is loaded. For this reason, autoboot will _first_ try
to load a kernel, and only proceed with the wait prompt after that
succeeds. If it fails, it will abort immediately.

While I understand some may think this behavior undesirable, I think
it is, overall, the best thing to do, even if we do not consider the
aesthetic issue. Notice that anyone using the default loader.rc
already has the kernel loaded before autoboot.

On unload, unset kernelname.

Separate the code that tries to load a kernel from the list of options
to the function loadakernel(). It is used by both boot() and
autoboot().

24 years agoFixed the softintr macro which directly accessed ipending.
kato [Fri, 8 Sep 2000 11:58:25 +0000 (11:58 +0000)]
Fixed the softintr macro which directly accessed ipending.

Suggested by: jasone

24 years agoMerged from sys/isa/sio.c revisions 1.309 - 1.311.
kato [Fri, 8 Sep 2000 11:54:13 +0000 (11:54 +0000)]
Merged from sys/isa/sio.c revisions 1.309 - 1.311.

24 years agoPrevent buffer overflow if NLSPATH is too long
ache [Fri, 8 Sep 2000 11:42:37 +0000 (11:42 +0000)]
Prevent buffer overflow if NLSPATH is too long

24 years agoMerged from sys/i386/i386/machdep.c revision 1.407.
kato [Fri, 8 Sep 2000 11:20:04 +0000 (11:20 +0000)]
Merged from sys/i386/i386/machdep.c revision 1.407.

24 years agoMerged from sys/boot/i386/loader/Makefile revision 1.47.
kato [Fri, 8 Sep 2000 11:18:40 +0000 (11:18 +0000)]
Merged from sys/boot/i386/loader/Makefile revision 1.47.

24 years agoOnly call kdb_trap() if the DDB config option is specified.
jasone [Fri, 8 Sep 2000 09:51:16 +0000 (09:51 +0000)]
Only call kdb_trap() if the DDB config option is specified.

24 years agoBack out my previous commit as well as some SMPng changes to revert the
jhb [Fri, 8 Sep 2000 08:50:25 +0000 (08:50 +0000)]
Back out my previous commit as well as some SMPng changes to revert the
siosetwater() function to its previous behavior of always disabling
interrupts and obtaining the com_lock before returning.

Requested by: bde (in principle)

24 years agoDisallow '/' characters in LC_* environment variables which might
kris [Fri, 8 Sep 2000 07:29:48 +0000 (07:29 +0000)]
Disallow '/' characters in LC_* environment variables which might
be used to point to a bad locale file. This is only believed to be a
minor security risk - the only risk is if some program uses the result
of a localized string as a format specifier in a vulnerable function
like sprintf(). No such code is believed to exist in the FreeBSD base
system, although it is possible that badly written third party code
would do that.

Submitted by: imp
Approved by: ache

24 years agosiointr1: Schedule soft interrupt when needed. This fixes the "no
grog [Fri, 8 Sep 2000 06:58:58 +0000 (06:58 +0000)]
siointr1: Schedule soft interrupt when needed.  This fixes the "no
interrupt" problem people had seen with SMPng.

Approved by:       jasone
Tested by:         bp

24 years agoAdd a mild warning for people to expect problems in -current after the
imp [Fri, 8 Sep 2000 06:41:47 +0000 (06:41 +0000)]
Add a mild warning for people to expect problems in -current after the
SMPng merge.  Suggest 4.x-stable for a while for those people that are
unable or unwilling to cope with problems.

After 6 hours of use tonight, my gut tells me that we're going to have
lots of problems crop up in the coming weeks.

24 years agoNew relnotes: SMPng, clarification to nsswitch.conf(5)
bmah [Fri, 8 Sep 2000 05:58:18 +0000 (05:58 +0000)]
New relnotes:  SMPng, clarification to nsswitch.conf(5)
that hosts.conf(5) is gone, perl 5.6.0.  First two items inspired by
recent commits to UPDATING.

24 years agoLook for libstand in the built tree rather than in /usr/lib. This
imp [Fri, 8 Sep 2000 04:26:55 +0000 (04:26 +0000)]
Look for libstand in the built tree rather than in /usr/lib.  This
likely could be done better, but the tree is broken and I wanted to
get a fix into the tree.

Reviewed by: msmith

24 years agoReally fix USER_LDT. (Don't use currentldt as an L-value.)
jake [Fri, 8 Sep 2000 03:36:09 +0000 (03:36 +0000)]
Really fix USER_LDT.  (Don't use currentldt as an L-value.)

24 years agoFix a problem where we would recursively try to get the com lock within
jhb [Fri, 8 Sep 2000 00:35:46 +0000 (00:35 +0000)]
Fix a problem where we would recursively try to get the com lock within
comparam when calling siosetwater().

Noticed by: bp

24 years agoCannot do MALLOC with M_WAITOK while holding ACQUIRE_LOCK
mckusick [Thu, 7 Sep 2000 23:02:55 +0000 (23:02 +0000)]
Cannot do MALLOC with M_WAITOK while holding ACQUIRE_LOCK

Obtained from: Ethan Solomita <ethan@geocast.com>