Commit Graph

167063 Commits

Author SHA1 Message Date
yamt aa57485fe2 sys__sched_setparam: fix a lock leak. 2008-02-19 09:44:26 +00:00
dholland eefb74f4dc Fix bugs in debug printouts. From OpenBSD. 2008-02-19 09:34:40 +00:00
dholland c4dc2f9e61 Don't use sprintf; use snprintf. 2008-02-19 09:32:34 +00:00
dholland 0419d05bfc Don't use perror(); use err/warn instead.
Suggested by diffing against OpenBSD.
2008-02-19 09:30:26 +00:00
dholland 98ff506f59 Fix capitalization of street names. from pjanzen@openbsd 2008-02-19 09:28:05 +00:00
dholland a7f37f4351 More typo fixes 2008-02-19 09:25:21 +00:00
dholland b113ea6af6 Fix formatting bug apparently introduced when the page was mdoc'd. (Had
.Nm, should have been .Pp.)

Also bump date; for some reason this hadn't been done since the original
import.
2008-02-19 09:24:43 +00:00
dholland df819b0896 Remove transient thingy that wasn't supposed to see the light of day, and
finish dealing with some local variables that shadow a global. (hi dholland)
2008-02-19 09:05:55 +00:00
dholland 5538b1cced Fix (another) typo in comment 2008-02-19 08:26:10 +00:00
dholland c1dc5a85f2 Fix typo in comment 2008-02-19 08:07:51 +00:00
dogcow ed79311de3 Always include <sys/cpu.h>, to pick up CPU_INFO_ITERATOR et al. 2008-02-19 07:46:51 +00:00
dogcow dd4be82d15 revert previous; as yamt pointed out, these bits are in <sys/cpu.h>. 2008-02-19 07:43:29 +00:00
dogcow 3faae34034 cargo-cult CPU_INFOITERATOR and _FOREACH to make kern_prf.c build again.
These should probably be abstracted out to sys/cpu.h at some point, since
they don't really change from arch to arch.
2008-02-19 07:04:41 +00:00
dholland 591ca18c53 Split some code from moreobj.c into action.c, as per larn 12.2. 2008-02-19 06:05:26 +00:00
ad a08d993d2c knote_fdclose: acquire kernel_lock because many objects that can be
polled do not have locking of their own.
2008-02-18 22:41:13 +00:00
martin 828c9eb2ec remove unused extern declarations 2008-02-18 21:08:42 +00:00
macallan 864b6f1c3f correct accidentially committed garbage (what the hell... ) 2008-02-18 19:43:02 +00:00
macallan 104b3395f2 correct typo 2008-02-18 19:04:49 +00:00
tron a9b0526a9a Bump the date. 2008-02-18 18:36:21 +00:00
macallan dca5aa4e8e avoid unnecessary writes to the MTE's direction registers 2008-02-18 18:35:37 +00:00
tron f760d97204 Add magic keyboard sequence for NetBSD-amd64. 2008-02-18 18:35:17 +00:00
ad 057adba179 Make it compile if !LOCKDEBUG. 2008-02-18 18:31:10 +00:00
ad 1a710239b8 A port of FreeBSD's updated unionfs. This is a work in progress. In
particular, unionfs_lookup() needs a lot of attention.
2008-02-18 16:44:22 +00:00
ad 7eb6056f9a Try to prevent more than one CPUs panicing when an error is detected. 2008-02-18 16:02:41 +00:00
simonb 9b21141213 Set "ftent" to NULL in in ftree_arg() after we call fts_close(), so that
it isn't used later on in ftree_sel() after it's been free'd.

OK christos@ (and for the interesting test case).
2008-02-18 15:54:48 +00:00
tsutsui 556a6829d8 Backout previous. vr_idle.S no longer depends on assym.h. 2008-02-18 15:21:04 +00:00
tsutsui 9e1c90f43b Remove unnecessary includes.
Many stuff was removed on newlock2 and yamt-idlelwp merges.
2008-02-18 15:19:57 +00:00
joerg f265df9b76 Add assym.h dependencies. 2008-02-18 15:02:20 +00:00
joerg 509bb20712 Return NULL if no scsibus was found to fix compilation. 2008-02-18 14:59:52 +00:00
ad 5408e000be panic: allow only one CPU to panic. Try to make the panicing thread bound
and try take all CPUs offline, in case we can block at some point in the
future.
2008-02-18 14:46:58 +00:00
joerg 90aa59667a Add assym.h dependencies. 2008-02-18 14:11:48 +00:00
joerg cf752ec8c5 Missing assym.h dependencies. 2008-02-18 14:01:17 +00:00
joerg ed2c6fd85b Register assym.h dependencies. 2008-02-18 13:29:46 +00:00
joerg fa14da3b3e Another assym.h dependency 2008-02-18 13:27:55 +00:00
joerg 34c8721568 Another assym.h dependency for hpcmips 2008-02-18 13:23:34 +00:00
martin 4262f42f3b For non-mpsafe interrupt handlers, grab the kernel lock via a biglock
wrapper. Fixes PR port-sparc64/37468.
2008-02-18 12:16:37 +00:00
elad 52cf460a76 Following input from Matthew Mondor, some Veriexec documentation changes:
- Document the signatures file format in a veriexec(5) man-page,
  - Document the strict levels and a general Veriexec intro in veriexec(8)
    instead of security(8).

Okay blymn@.
2008-02-18 10:37:19 +00:00
scw c2d76d9a5a Re-sync the (broken) amd64 ACPI Global Lock macros with their i386
counterparts.

As discussed on port-amd64, these will be replaced by portable C code
in the near future.
2008-02-18 09:00:19 +00:00
dyoung b993124acc Adapt the code for write-protecting the Interrupt Descriptor Table,
which wasn't such a good idea, to protect physical page 0, instead.
2008-02-18 06:26:42 +00:00
dyoung 36f58dc899 Use aprint_*_dev(), device_t and accessors. Constify a bit. 2008-02-18 06:19:50 +00:00
dyoung 08a54ea3b3 Use device_xname(). 2008-02-18 06:17:27 +00:00
dyoung 0b1dce29ae Use device_t and its accessor functions.
Register _childdetached methods with drivers that attach children.
Wait to set child references to NULL there, instead of doing that
in the detach method.

Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().
2008-02-18 05:24:24 +00:00
dyoung 4c39af2f02 Take a small step toward making vndcompress into a host tool:
remove #include <arpa/inet.h> and use bswap32() instead of ntohl().
2008-02-18 03:34:04 +00:00
yamt 146e2f8297 sys__sched_setparam: use a correct lwp. 2008-02-18 02:00:08 +00:00
matt c2b9622034 Don't need to that particular in mtprng_random(). Use 2 values instead of 8. 2008-02-17 22:49:11 +00:00
njoly 6d3975648f Regen for pread/pwrite fixes. 2008-02-17 21:50:36 +00:00
njoly fc9f8f74de pread/pwrite fixes: use SCARG_P32 to access pointers, and update
syscalls definitions.
2008-02-17 21:49:17 +00:00
elad 0bb7f5ccb3 PR/37986: YAMAMOTO Takashi: any user can hog the all cpu with
_sched_setparam.

Pass proper context to kauth(9) for a decision to made based on the
scheduling policy and priority.
2008-02-17 19:22:35 +00:00
phx 55ec696662 Fixed compilation with DEBUG option for PMAP_OEA64_BRIDGE.
Approved by garbled.
2008-02-17 18:16:42 +00:00
bouyer 532742d958 The informations about console and store page number are long, so avoid
overflow on i386PAE when converting to machine address. Fix booting
XEN3PAE kernels when xen maps it above 4Gb.
2008-02-17 17:39:42 +00:00