summaryrefslogtreecommitdiff
path: root/sys/kern/kern_kthread.c
AgeCommit message (Collapse)Author
2004-12-08Have kthread_create_deferred() act immediately once kthread_run_deferred_queue()Miod Vallat
has been invoked; forgotten part of the ``create init earlier'' changes. From NetBSD as well. ok deraadt@ dlg@
2004-11-23Create the init process earlier, before the root filesystem is mounted,Miod Vallat
and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
2004-05-04Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.Alexander Yurchenko
This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
2004-01-03put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macrosMarc Espie
to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
2003-05-27typos in comments; From: Bengt Wessling <bengt@lemuria.org>, 10xHenning Brauer
2003-05-06string cleaning; tedu okTheo de Raadt
2002-06-11ANSIfyArtur Grabowski
2002-03-15Kill #if __STDC__ used to do K&R vs. ANSI varargs/stdarg; just do thingsTodd C. Miller
the ANSI way.
2002-03-14First round of __P removal in sysTodd C. Miller
2001-11-06Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,Artur Grabowski
instead of doing fork1, cpu_set_kpc. This lets us retire cpu_set_kpc and avoid a multiprocessor race. This commit breaks vax because it doesn't look like any other arch, someone working on vax might want to look at this and try to adapt the code to be more like the rest of the world. Idea and uvm parts from NetBSD.
2001-08-08__dead not __noreturn__Todd C. Miller
2001-06-27no more cpu_set_init_frameArtur Grabowski
2001-06-27remove old vmArtur Grabowski
2001-04-02On popular demand, the Linux-compatibility clone(2) implementation basedNiklas Hallqvist
on NetBSD's code, as well as some faked Posix RT extensions by me. This makes at least simple linuxthreads tests work.
2000-07-17art, at least commit something which compiles!Theo de Raadt
2000-07-17FORK_SHAREVM only works on non-UVM kernels.Artur Grabowski
Pointed out by miod@
2000-06-18Mark kernel threads as system processes. Make ps hide them by default,Niklas Hallqvist
show them with -k. Do not try to show RSS based values for them as they mess up column alignment. vmstat -f now shows kernel threads separately from rforks too.
2000-01-31re-add fixed vfork code from artTheo de Raadt
2000-01-31undo vfork changes, since non-UVM was not consideredTheo de Raadt
2000-01-28Change fork1() from taking forktype and rforkflags, into a single flagsArtur Grabowski
argument. Let sys_rfork build the arguments to fork1() and do the sanity checks itself.
1999-08-17New cpu_fork API to take a stack in which you point the child's stackpointerNiklas Hallqvist
to, at the bottom or the top, depending on your architecture's stack growth direction. This is in preparation for Linux' clone(2) emulation. port maintainers, please check that I did the work right.
1999-01-26We need machine/cpu.h for the cpu_set_init_frame defNiklas Hallqvist
1999-01-11sigh memset is not available everywhere, I should know betterNiklas Hallqvist
1999-01-11kthread abstraction from NetBSD, implemented with our rforkNiklas Hallqvist