Commit Graph

92803 Commits

Author SHA1 Message Date
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
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
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
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
bouyer
2720c9d6a3 Install xenio.h and xenio3.h in /usr/include/xen, for the benefit
of xentools3.

XXX ignore those in Makefile.ioctl-c, they don't compile properly outside
of the Xen context and the ioctls from xenio.h conflicts with
soundcard.h
2008-02-17 16:23:12 +00:00
bouyer
895da00e0d Fix IOCTL_PRIVCMD_HYPERCALL issue which shows up with xen-3.1.3:
some hypercalls results are returned though the error path (depending on
sign, it's an error code or a result), and some results are interpreted in
a special way by the NetBSD kernel (e.g. -1).
Add a 'retval' member to the privcmd_hypercall_t argument, which holds
the hypercall result if it completed without error. The error code
is returned via the usual error path.
Handle the old IOCTL_PRIVCMD_HYPERCALL under COMPAT_40.

While there, make the double-inclusion protection #define match the
convention in xenio3.h and xenio.h.
2008-02-17 16:21:19 +00:00
bouyer
a9cd17640d Add missing __KERNEL_RCSID() 2008-02-17 14:03:16 +00:00
uwe
67b202aca8 Use aprint_*, device_xname. 2008-02-17 06:03:13 +00:00
uwe
cf7d73cb17 hd64461_set_bus_width - use named constants instead of bit shift magic. 2008-02-17 05:38:30 +00:00
uwe
a01729fd26 Define constants for setting bus widths of physical space areas in BCR2. 2008-02-17 05:36:38 +00:00
uwe
45b20506a7 hd64461_info: Print correct full name for STBCR (s/system/standby/). 2008-02-17 04:10:45 +00:00
kiyohara
a69c196184 USER_SR defines 10, like prep. 2008-02-17 03:57:15 +00:00
kiyohara
a867585079 Interrupt setting of PCI from 3.1. In present interrupt, 32
BeInterruptController queues up following i8259(16).
2008-02-17 03:54:21 +00:00
macallan
4395e1dd05 use MTE for rectangle filling as well
TODO: figure out why the MTE freaks out when used for character drawing
2008-02-17 02:09:05 +00:00
macallan
d1dee12954 adjust some register names, also use MTE for scrolling down 2008-02-17 01:46:46 +00:00
macallan
eceb35ec40 use the memory transfer engine for scrolling when possible
currently that's only for scrolling upwards but the speedup should be very
noticeable
TODO: use MTE for erase rasops, figure out how to control the MTEs direction
2008-02-17 00:51:15 +00:00
jmcneill
cb2c90372d Use aprint_* instead of printf during attach. 2008-02-16 23:26:05 +00:00
he
4d38f4204c Reinstate an accidentally removed #if test, so that this builds again. 2008-02-16 22:02:15 +00:00
bouyer
cc046e71a2 Minor optimisation: for Xen amd64, copy to kernel map only the entries from
user map that are needed.
2008-02-16 22:01:16 +00:00
bouyer
43a668145e Sync with GENERIC, add options ACPI_SCANPCI and MPBIOS_SCANPCI,
as well as commented out ACPI_ACTIVATE_DEV and ACPICA_PEDANTIC.
Should fix PR kern/37996.
2008-02-16 22:00:14 +00:00
ober
6235fe300c More cleanup. Removal of debug comments. 2008-02-16 18:51:42 +00:00
he
c8e663c5cb Remove a now-superfluous & after the change to spc_lwplock in sched.h. 2008-02-16 18:17:36 +00:00
apb
267197ec1e For all files under src/common, as well as related man pages under
src/lib/libc, or related headers under src/sys/sys: change u_intNN_t to
uintNN_t.
2008-02-16 17:37:13 +00:00
elad
e99760e7e4 Fold KAUTH_REQ_PROCESS_SCHEDULER_* to KAUTH_PROCESS_SCHEDULER_*. In other
words, don't pass an action and a request, and just use a single action to
indicate what is the operation in question.

This is the first step in fixing PR/37986, which calls for policy/priority
checking in the secmodel code. Right now we're lacking room for another
parameter required to make a decision, and this change makes room for such.
2008-02-16 16:39:34 +00:00
ad
99f27439b5 Implement yield(). 2008-02-15 23:36:26 +00:00
jmcneill
f92d4497eb Add missing register definitions. 2008-02-15 22:14:10 +00:00
ad
fb00b83874 Give bbusy() an interlock argument. If the we need to wait for the buffer,
the interlock is dropped and reacquired when awoken. This allows for
busying buffers attached to a list that is not locked by bufcache_lock.
2008-02-15 13:46:04 +00:00
ad
b2fa822a33 The buffer LOCKED flag need not be under the protection of bufcache_lock,
BUSY is enough.
2008-02-15 13:30:56 +00:00
gson
f3b879c064 Fix unaligned write to PCI configuration space. Should fix PR kern/37824. 2008-02-15 13:28:25 +00:00