John Polstra
8287860e04
Set up the BCM570x chip's DMA Read/Write Control register more
...
correctly. This fixes the "watchdog timeout -- resetting" errors
seen on Dell 2650 systems.
MFC after: 1 month
2002-09-22 18:27:29 +00:00
Ian Dowse
ac11ad13fb
Attempt to fix the error reported by the alpha tinderbox. A pointer
...
was being cast to an integer as part of a hash function, so just
add an intptr_t cast to silence the warning.
2002-09-22 13:25:57 +00:00
Peter Grehan
a0c6726472
Initialize fwsectors/fwheads to allow the DIOCGFWSECTORS and
...
DIOCGFWHEADS ioctls to return meaningful values to disklabel/newfs
Approved by: phk
2002-09-22 10:07:18 +00:00
Don Lewis
1c4ccf09cd
Fix misspellings, capitalization, and punctuation in comments. Minor
...
comment phrasing and style changes.
2002-09-22 08:54:17 +00:00
Poul-Henning Kamp
c8423e9702
Move the com_scr register address definition over with the other seven.
...
Approved by: bde
2002-09-22 08:51:31 +00:00
Matthew N. Dodd
4a2eca23ca
Modify vm_map_clean() (and thus the msync(2) system call) to support
...
invalidation of cached pages for objects of type OBJT_DEVICE.
Submitted by: Christian Zander <zander@minion.de>
Approved by: alc
2002-09-22 08:22:32 +00:00
Jeff Roberson
5bf6b6538e
- Hook ALQ up to the build.
2002-09-22 07:19:37 +00:00
Jeff Roberson
4b124a4b8e
- Add options ALQ and KTR_ALQ.
2002-09-22 07:14:27 +00:00
Jeff Roberson
abee588b36
- 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 Roberson
c76e20451c
- Tell witness about ALQ's spin lock.
2002-09-22 07:11:57 +00:00
Jeff Roberson
9405072a95
- 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 Burkholder
95f5cd52bc
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 Burkholder
98f93c07a5
Removed unneeded include (missed in last revision).
2002-09-22 06:05:23 +00:00
Jake Burkholder
e3b6e33c07
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
Mike Silbersack
f8f4148236
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 Wemm
eb1443c8dd
Create inlines for ltr(sel), lldt(sel), lidt(addr) rather than
...
functions that have one instruction.
2002-09-22 04:45:21 +00:00
Alan Cox
e94ce82689
o Update some comments.
2002-09-22 04:33:43 +00:00
Mike Silbersack
c1c36a2c68
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
Jake Burkholder
04474d7f0b
Remove unneeded opt headers.
...
Noticed by: benno
2002-09-22 01:34:33 +00:00
Matthew N. Dodd
e58de9c6bc
- 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 Rice
be0e6bfc0b
It's Apple GMAC, not HMAC.
...
Approved by: jake (for sparc64)
2002-09-22 01:18:06 +00:00
Jake Burkholder
abc370fa85
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
Bruce Evans
ad6c348105
Whitespace fixes (mainly for many more messes in the definitions of the
...
rfork() constants).
2002-09-21 22:57:52 +00:00
Jake Burkholder
05ba50f522
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
Mark Murray
a0a95acece
Remove #ifdef'ed Giant mutex wrappers round debugging statements.
2002-09-21 21:44:19 +00:00
Nicolas Souchu
44e6ce01b9
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
Mark Murray
b0186e2c5c
No functional change. Fix comments and whitespace.
2002-09-21 21:40:02 +00:00
Robert Watson
7678df4487
Remove another missed trailing space.
2002-09-21 19:50:28 +00:00
Alan Cox
60b09ad43c
o Remove an initialized but unused variable from pmap_remove_all().
2002-09-21 19:42:11 +00:00
Robert Watson
5784b0a22d
Trim trailing whitespace from the ends of lines.
2002-09-21 19:26:59 +00:00
Robert Watson
13763f5074
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
Mark Murray
0a7d7bdc02
Wrap GNUish asm() code in #ifdef __GNUC__
2002-09-21 19:12:59 +00:00
Mark Murray
181cb2165a
Use a function instead of a non-portable, GCC-specific asm() entry.
2002-09-21 19:03:42 +00:00
Mark Murray
e40ab3e98e
A good dose of style.9. No functional change.
2002-09-21 19:02:17 +00:00
Robert Watson
164634351b
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
Mark Murray
38a4de7905
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
Mark Murray
bebe1b92bd
Use a function instead of embedding non-portable asm() constructs
...
in C code.
2002-09-21 18:51:19 +00:00
Mark Murray
39ae7d0dc4
Sort includes.
2002-09-21 18:30:12 +00:00
Robert Watson
728fbeea52
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
Mark Murray
d7ee442578
Provide in inline function for the (GNUC) assembler "hlt" instruction.
2002-09-21 18:26:53 +00:00
Mark Murray
c7c7312f2c
Wrap GCC-specific asm() code in #ifdef __GNUC__
2002-09-21 18:19:51 +00:00
Maxime Henrion
f30120c393
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
Mark Murray
bda9921d3f
Constify to kill some warnings.
2002-09-21 17:29:36 +00:00
Mark Murray
963b82c64c
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
Hidetoshi Shimokawa
bddcb995cd
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
Hidetoshi Shimokawa
ba68cdd304
don't include bus_dma.h which doesn't need.
2002-09-21 15:05:22 +00:00
Hidetoshi Shimokawa
b24db4ddd9
remove unused code.
2002-09-21 14:48:07 +00:00
Poul-Henning Kamp
668b05c376
Remove empty #if*/#endif clauses.
2002-09-21 08:44:51 +00:00
Poul-Henning Kamp
e48fb743d8
Remove #ifdef/#endif 3 years after the stuff they protected was removed.
...
Spotted by: peter.
2002-09-21 08:00:01 +00:00
Poul-Henning Kamp
bc8c3c3e37
Fix a 3 year old oversight: Remove the #ifdef/#endif pair now that there
...
is nothing between them anymore.
Spotted by: peter.
2002-09-21 07:59:06 +00:00