dfr [Wed, 20 Mar 2002 10:04:08 +0000 (10:04 +0000)]
Replace calls to cpu_critical_enter/exit with appropriate calls to
either explicitly disable interrupts or use a real critical section,
as appropriate.
darrenr [Wed, 20 Mar 2002 08:57:10 +0000 (08:57 +0000)]
* ipftest now compiles with IPFILTER_LOG and needs ip_log.c to be able to
do the log regression test.
* dumping state/nat entries is also possible, outputting this information is
in the print{state,nat}.c files.
phk [Wed, 20 Mar 2002 08:48:21 +0000 (08:48 +0000)]
Various style issues from a recent brucification:
use uint_%dt not u_int%dt
Avoid LL suffixed intergers where we can by using explicit casts.
(The last two I don't know how to avoid.)
Add an explanation why truncation rather than rounding is used.
dillon [Wed, 20 Mar 2002 04:05:26 +0000 (04:05 +0000)]
Fix a bug introduced in 1.11 (and also MFCd to stable AND the security branch)
that causes a machine to panic when the kernel PPP / DEFLATE code is used.
1.11 moved a ZFREE to a point after the structural members were clobbered
by stores into a union'd structure.
This commit fixes the bug and adds a big whopping comment to make sure
the code isn't 'cleaned up' again :-)
Ian Dowse came up with the same patch independantly 68 seconds before I
did, talk about Karma!
I would also like to thank Eugene Grosbein for marathon work in tracking the
problem down by udpating his -stable based on date over and over again
to close in on the commit that caused his crashes.
PR: kern/35969
Reviewed by: Ian Dowse <iedowse@maths.tcd.ie>
X-MFC after: immediately
rwatson [Wed, 20 Mar 2002 02:34:01 +0000 (02:34 +0000)]
Teach growfs's dbg_open() that a filename of "-" for output means to
open "/dev/stdout". This doesn't actually affect growfs, but does affect
ffsinfo, permitting ffsinfo to output to the shell's stdout rather than
requiring it be dumped to a file or explicitly pointed at a special
device.
jeff [Wed, 20 Mar 2002 02:27:55 +0000 (02:27 +0000)]
Force the boot cpu to wait for the APs to finish starting up. This eliminates
a race where the AP and the boot cpu were trying to printf at the same time,
which was confusing the console too much for it to continue working.
deischen [Tue, 19 Mar 2002 22:58:56 +0000 (22:58 +0000)]
Add the ability to recognize old references to keys, and return NULL
when old keys are referenced (after pthread_key_delete()) via
pthread_getspecific().
iedowse [Tue, 19 Mar 2002 17:03:14 +0000 (17:03 +0000)]
The FSIRAND code is always compiled in, and it is unlikely that
anyone needs a newfs without it. Remove the #ifdef's from around
the code and the -DFSIRAND from the Makefile. Also remove redundant
declarations of random() and srandomdev().
darrenr [Tue, 19 Mar 2002 15:07:30 +0000 (15:07 +0000)]
both ipnat and ipfstat now use libkvm rather than their own home-rolled
kmem accessors, allowing them to be used with crash dumps as well as live
systems, now.
peter [Tue, 19 Mar 2002 12:14:14 +0000 (12:14 +0000)]
Add some break's after default: in the end of switch statements to
keep gcc-3.1+ happy:
ata-all.c:410: warning: deprecated use of label at end of compound statement
ata-all.c:587: warning: deprecated use of label at end of compound statement
ata-raid.c:99: warning: deprecated use of label at end of compound statement
ata-raid.c:151: warning: deprecated use of label at end of compound statement
peter [Tue, 19 Mar 2002 12:07:27 +0000 (12:07 +0000)]
Move savecore build enable to MD section of Makefile, currently enabled
for i386 and alpha. Although it builds on sparc64, it does not yet work.
A similar hack as what is used on the sparc64 MD macros can be used to
make ia64 build too, but there doesn't seem to be much point.
peter [Tue, 19 Mar 2002 11:18:47 +0000 (11:18 +0000)]
My ia64 box for some reason likes to fragment the beginning/end of memory
a bit before handing it over to the OS. I occasionally have 11
segments with several 8K or so fragments depending on nvram settings and
what I have done under loader(8) before booting. This needs to be
revisited.