Commit Graph

80508 Commits

Author SHA1 Message Date
jeff
1925bb752e - Add support for logging KTR via ALQ. This is optional and enabled by the
KTR_ALQ config option.
2002-09-22 07:13:45 +00:00
jeff
29f7b975a7 - Tell witness about ALQ's spin lock. 2002-09-22 07:11:57 +00:00
jeff
dff8b170b4 - Add an asynchronous fixed length record logging mechanism called
ALQ (Asynch. Logging Queues).  ALQ supports many seperate queues with
   different record and buffer sizes.  It opens and logs to any vnode so
   it can be used with character devices as well as regular files.

Reviewed in part by:	phk, jake, markm
2002-09-22 07:11:14 +00:00
jake
87b049746c Call trap directly for exceptional cases that need more processing on
return to usermode, rather than branching back to a label before the
original call.
2002-09-22 06:51:41 +00:00
jake
889b132813 Removed unneeded include (missed in last revision). 2002-09-22 06:05:23 +00:00
tjr
f3945d0420 Add an unlocked version of ungetwc(), __ungetwc(), that __vfwscanf()
will need to use.
2002-09-22 05:59:00 +00:00
jake
71181f3a59 Moved netisr code from kern/kern_intr.c to net/netisr.c as threatened in a
comment.
2002-09-22 05:56:41 +00:00
obrien
8793159e5b There is need to have a special BINUTIL_ARCH when we can use our more
common place TARGET_ARCH.
2002-09-22 05:29:37 +00:00
silby
b4f455bab1 Remove all DELAY(1) calls around MII operations in the XL driver.
According to the MII specification, the delay produced by our
reads alone are sufficient for correct operation.

This reduces the time mii_tick takes from 10ms to ~1ms here.  That's
still a lot, but much better than before.

Submitted by:	Harti Brandt <brandt@fokus.gmd.de>
MFC after:	3 weeks
2002-09-22 04:48:30 +00:00
peter
b14dade25b Create inlines for ltr(sel), lldt(sel), lidt(addr) rather than
functions that have one instruction.
2002-09-22 04:45:21 +00:00
alc
2e0a9f1f68 o Update some comments. 2002-09-22 04:33:43 +00:00
silby
3a4a400adc Fix issue where shutdown(socket, SHUT_RD) was effectively
ignored for TCP sockets.

NetBSD PR:	18185
Submitted by:	Sean Boudreau <seanb@qnx.com>
MFC after:	3 days
2002-09-22 02:54:07 +00:00
grog
3fdc445c38 Update equinoxes and solstices.
PR:	bin/43166
2002-09-22 01:53:18 +00:00
jake
0597bfec13 Remove unneeded opt headers.
Noticed by:	benno
2002-09-22 01:34:33 +00:00
mdodd
18510fd2d9 - Move the init of %gs and pcb_gs before user_ldt_free().
- Always call load_gs()
- Trim comments.

This addresses some of the issues raised by BDE.
2002-09-22 01:32:48 +00:00
benno
0739a1270e It's Apple GMAC, not HMAC.
Approved by:	jake (for sparc64)
2002-09-22 01:18:06 +00:00
jake
28d46f30fd Moved nfs_diskless setup code from autoconf.c to nfsclient/nfs_diskless.c
so that it is MI.  Allow nfs_mountroot to return an error if the nfs_diskless
struct is not valid, rather than panicing later on.  Call nfs_setup_diskless()
from nfs_mountroot if NFS_ROOT is defined, like bootpc_init().  Removed legacy
root mount support for sparc64, and enabled NFS_ROOT by default.
2002-09-22 00:59:02 +00:00
mini
78c2c1b0cd Style cleanup:
- Sort local variable declarations.
- Protect a hand-formatted comment from indent(1).
- Use portable casts, even though this is machine-dependant code.
- Remove extraneous blank lines.
- Remove trailing newline.
- Use sigdelset(3), not SIGDELSET(9).

Requested by:	bde
2002-09-21 23:54:32 +00:00
bde
29240c0000 Whitespace fixes (mainly for many more messes in the definitions of the
rfork() constants).
2002-09-21 22:57:52 +00:00
jake
3b4eef4d8d Use the fields in the sysentvec and in the vm map header in place of the
constants VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK and PS_STRINGS.
This is mainly so that they can be variable even for the native abi, based
on different machine types.  Get stack protections from the sysentvec too.
This makes it trivial to map the stack non-executable for certain abis, on
machines that support it.
2002-09-21 22:07:17 +00:00
bde
4f42bc29f9 Whitespace cleanup (half for fixing missing whitespace before `__restrict'
again).

Removed the second pair of banal comments about `quot' and `rem'.
2002-09-21 22:05:37 +00:00
markm
fb64253767 Remove #ifdef'ed Giant mutex wrappers round debugging statements. 2002-09-21 21:44:19 +00:00
nsouch
991c2705c4 Cleanup of amdpm(4).
Add of NVIDIA nForce (nfpm) smbus support.

Obtained from:	Thomas D. Dean <tomdean@speakeasy.org>
2002-09-21 21:43:49 +00:00
markm
ab6227b056 No functional change. Fix comments and whitespace. 2002-09-21 21:40:02 +00:00
bde
afd23e410d Whitespace fixes (mainly for a space instead of a tab after #define). 2002-09-21 21:28:25 +00:00
rwatson
e5f1d59118 Remove another missed trailing space. 2002-09-21 19:50:28 +00:00
alc
4afb6357c8 o Remove an initialized but unused variable from pmap_remove_all(). 2002-09-21 19:42:11 +00:00
rwatson
206eb63bd0 Trim trailing whitespace from the ends of lines. 2002-09-21 19:26:59 +00:00
rwatson
efd88325ba Continue cleanup and sync of mac_biba and mac_mls policies to the
TrustedBSD MAC Perforce tree.  Remove unused functions
mac_biba_equal_range and mac_mls_equal_range, which determined if the
ranges in two range-enabled labels were equal.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-09-21 19:20:01 +00:00
markm
5647aa9584 Wrap GNUish asm() code in #ifdef __GNUC__ 2002-09-21 19:12:59 +00:00
markm
ace2744bc7 Use a function instead of a non-portable, GCC-specific asm() entry. 2002-09-21 19:03:42 +00:00
markm
09946fef8a A good dose of style.9. No functional change. 2002-09-21 19:02:17 +00:00
rwatson
b77eb790de Remove mac_biba_high_single() check for interface renaming: we now
use the notion that a subject range of (low-high) connotes Biba
privilege rather than a single of high.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-09-21 19:01:44 +00:00
markm
cfe04ea627 Code tidy-up. ISOfy, turn a macro into an inline for lint(1) (perhaps
this needs to go to cpufunc.h?), de-register.
2002-09-21 18:53:58 +00:00
markm
19ea227db1 Use a function instead of embedding non-portable asm() constructs
in C code.
2002-09-21 18:51:19 +00:00
markm
82d8ceab83 Sort includes. 2002-09-21 18:30:12 +00:00
rwatson
ed25385ee7 As INVARIANTS isn't supported for code that loads only as a kernel
module and is not linked into the base system, two KASSERT's rotted.
Fix them by fixing variable names.  It would be really nice if
opt_global.h was used when building modules as part of a buildkernel.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-09-21 18:29:37 +00:00
markm
08ca54d400 Provide in inline function for the (GNUC) assembler "hlt" instruction. 2002-09-21 18:26:53 +00:00
markm
3f6be7a6c3 Wrap GCC-specific asm() code in #ifdef __GNUC__ 2002-09-21 18:19:51 +00:00
mux
d30199a912 Don't include opt_bus.h here, it breaks stuff trying to
include machine/bus.h.

Reviewed by:	tmm
2002-09-21 18:12:00 +00:00
markm
f084128c54 Constify to kill some warnings. 2002-09-21 17:29:36 +00:00
markm
1502568753 Everywhere else, an argument passed to a device containing flags
is called "flags". Make it so here.
2002-09-21 17:28:17 +00:00
schweikh
dd86e6792b s/seems to thing/seems to think
X-MFC after:	4.7 is out the door
2002-09-21 16:13:20 +00:00
simokawa
43a0750855 Firewire can be built on other than i386 after sbp.c fix.
Tested on: Alpha (beast.freebsd.org)
2002-09-21 15:22:09 +00:00
simokawa
bd6241aa97 don't include bus_dma.h which doesn't need. 2002-09-21 15:05:22 +00:00
simokawa
3c709442f7 remove unused code. 2002-09-21 14:48:07 +00:00
tjr
b8b976af9f Delete stray reference to vsnprintf(). 2002-09-21 14:25:58 +00:00
tjr
a399903ed4 Add implementations of the wprintf() family of functions, which perform
formatted wide-character output.
2002-09-21 13:00:30 +00:00
markm
48995e5bf3 Rename the ftp log filename for compatability with OpenBSD and NetBSD.
Requested by:	ru
2002-09-21 12:07:35 +00:00
tjr
d4d7777ee9 Restrict visibility of wcslcat() and wcslcpy() to the __BSD_VISIBLE case. 2002-09-21 08:55:16 +00:00