#
c46fd98e |
| 09-Jun-2004 |
art <art@openbsd.org> |
Merge in a piece of the SMP branch into HEAD.
Introduce the cpu_info structure, p_cpu field in struct proc and global scheduling context and various changed code to deal with this. At the moment no
Merge in a piece of the SMP branch into HEAD.
Introduce the cpu_info structure, p_cpu field in struct proc and global scheduling context and various changed code to deal with this. At the moment no architecture uses this stuff yet, but it will allow us slow and controlled migration to the new APIs.
All new code is ifdef:ed out.
ok deraadt@ niklas@
show more ...
|
#
ffe9e374 |
| 31-Oct-2003 |
markus <markus@openbsd.org> |
allocate at least as much elements as requested in hashinit fixes pr 3537, based on patch from daniel@nofsk.nofsk.au.eu.org ok millert@, deraadt@, tedu@
|
#
27e97305 |
| 21-Jul-2003 |
tedu <tedu@openbsd.org> |
remove caddr_t casts. it's just silly to cast something when the function takes a void *. convert uiomove to take a void * as well. ok deraadt@
|
#
29295d1c |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1de66d4e |
| 09-Jan-2003 |
miod <miod@openbsd.org> |
Remove fetch(9) and store(9) functions from the kernel, and replace the few remaining instances of them with appropriate copy(9) usage.
ok art@, tested on all arches unless my memory is non-ECC
|
#
56133d81 |
| 12-Jul-2002 |
art <art@openbsd.org> |
- Add a flags argument to dohooks. The flag can be either HOOK_REMOVE or HOOK_REMOVE|HOOK_FREE. o HOOK_REMOVE removes the hook from the list before executing it. o HOOK_FREE frees the hook af
- Add a flags argument to dohooks. The flag can be either HOOK_REMOVE or HOOK_REMOVE|HOOK_FREE. o HOOK_REMOVE removes the hook from the list before executing it. o HOOK_FREE frees the hook after that.
- Let dostartuphooks use HOOK_REMOVE|HOOK_FREE so we can reclaim the memory.
- Let doshutdownhooks use HOOK_REMOVE so that when some shutdown hook panics (they do that all the #@$%! time these days) we don't loop for ever. Don't HOOK_FREE, it doesn't matter and I don't want to add another possible panic condition for shutdown hooks.
- Actually free the pointer we're throwing away in hook_disestablish (I wonder how much memory this has leaked over the years).
show more ...
|
#
c4071fd1 |
| 14-Mar-2002 |
millert <millert@openbsd.org> |
First round of __P removal in sys
|
#
ec1f6c03 |
| 27-Jul-2001 |
niklas <niklas@openbsd.org> |
Startup hooks. Can be used for providing root/swap devices from device systems which want configuration to finish late, like I2O. Implemented via a general hooks mechanism which the shutdown hooks
Startup hooks. Can be used for providing root/swap devices from device systems which want configuration to finish late, like I2O. Implemented via a general hooks mechanism which the shutdown hooks have been converted to use as well. It even has manpages!
show more ...
|
#
636eb109 |
| 27-Jun-2001 |
art <art@openbsd.org> |
remove old vm
|
#
7cdefcf6 |
| 26-Jun-2001 |
aaron <aaron@openbsd.org> |
Appease gcc by not using void pointers in arithmetic operations; art@ ok
|
#
a950bd2d |
| 23-Jun-2001 |
art <art@openbsd.org> |
Since malloc in hashinit can get M_NOWAIT flags, we should check the return value.
|
#
1c236879 |
| 07-Sep-2000 |
art <art@openbsd.org> |
On resume run the powerhook in installation order. (the powerhooks were always run in reverse order).
|
#
04fe8f2b |
| 07-Sep-2000 |
art <art@openbsd.org> |
Put powerhooks on a CIRCLEQ instead of LIST. Use FOREACH macros instead of walking the list manually.
|
#
ef0c9b98 |
| 07-Sep-2000 |
art <art@openbsd.org> |
Run powerhooks at splhigh.
|
#
03c4ab84 |
| 05-Sep-2000 |
aaron <aaron@openbsd.org> |
Wrap power hooks in splimp(), fixes WaveLAN suspend problem; thanks art@
|
#
fc1f8ee5 |
| 19-Apr-2000 |
art <art@openbsd.org> |
Remove the roundrobin_attempts hack and replace it with per-process scheduling flags (much nicer for future smp work). Add two generic functions yield() and preempt(). Use preepmt() in uio when we ar
Remove the roundrobin_attempts hack and replace it with per-process scheduling flags (much nicer for future smp work). Add two generic functions yield() and preempt(). Use preepmt() in uio when we are told to yield. Based on my idea, code written by Jason Thorpe from NetBSD.
show more ...
|
#
f7e5f6f6 |
| 03-Mar-2000 |
art <art@openbsd.org> |
If we attempted reschedule two times without suceeding, uiomove will yield, giving other processes a chance to run.
A process feeding a huge buffer to {read,write}{,v} on a file that doesn't need to
If we attempted reschedule two times without suceeding, uiomove will yield, giving other processes a chance to run.
A process feeding a huge buffer to {read,write}{,v} on a file that doesn't need to wait for I/O, could have hogged a lot of cpu in the kernel, blocking all userland activity.
Based on a similiar fix in FreeBSD.
show more ...
|
#
52890ed5 |
| 07-Nov-1999 |
provos <provos@openbsd.org> |
add APM powerhooks. from NetBSD, Sat Jun 26 08:25:25 1999 UTC by augustss:
Add powerhooks, i.e., the ability to register a function that will be called when the machine does a suspend or resume. XXX
add APM powerhooks. from NetBSD, Sat Jun 26 08:25:25 1999 UTC by augustss:
Add powerhooks, i.e., the ability to register a function that will be called when the machine does a suspend or resume. XXX Will go away when Jason's kevents come to life.
show more ...
|
#
a197ef32 |
| 28-Apr-1999 |
art <art@openbsd.org> |
zap the newhashinit hack. Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
|
#
a91606c1 |
| 26-Feb-1999 |
art <art@openbsd.org> |
uvm uses kcopy when uiomoving from sysspace
|
#
13049928 |
| 26-Feb-1999 |
millert <millert@openbsd.org> |
Add newhashinit(), which is identical to hashinit() except it takes a flags arg for passing to malloc() (hashinit always uses M_WAITOK which is not always what you want). Everything that uses hashin
Add newhashinit(), which is identical to hashinit() except it takes a flags arg for passing to malloc() (hashinit always uses M_WAITOK which is not always what you want). Everything that uses hashinit should really get converted to newhashinit and then newhashinit can be renamed.
show more ...
|
#
9b355cb2 |
| 28-Jul-1998 |
millert <millert@openbsd.org> |
Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned (size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid i
Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned (size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
show more ...
|
#
f4e9f33f |
| 11-May-1998 |
deraadt <deraadt@openbsd.org> |
compile if iov_base is void *
|
#
6a5be22a |
| 24-Feb-1997 |
niklas <niklas@openbsd.org> |
OpenBSD tags
|
#
d724e01a |
| 21-Apr-1996 |
deraadt <deraadt@openbsd.org> |
partial sync with netbsd 960418, more to come
|