NetBSD/sys/kern
gmcgarry 6a6ea308fd Separate the scheduler from the context switching code.
This is done by adding an extra argument to mi_switch() and
cpu_switch() which specifies the new process.  If NULL is passed,
then the new function chooseproc() is invoked to wait for a new
process to appear on the run queue.

Also provides an opportunity for optimisations if "switching to self".

Also added are C versions of the setrunqueue() and remrunqueue()
low-level primitives if __HAVE_MD_RUNQUEUE is not defined by MD code.

All these changes are contingent upon the __HAVE_CHOOSEPROC flag being
defined by MD code to indicate that cpu_switch() supports the changes.
2002-09-22 05:36:48 +00:00
..
Make.tags.inc
Makefile
cnmagic.c
core_elf32.c
core_elf64.c
core_netbsd.c
exec_aout.c only create a vmcmd for the BSS if there is any BSS. fixes PR 17834. 2002-08-29 06:31:21 +00:00
exec_conf.c Fix comments for #endif, to keep proper nesting and reflect reality. 2002-09-04 06:34:21 +00:00
exec_ecoff.c
exec_elf32.c The entry point address for the interpreter must be adjusted by the text 2002-09-12 16:57:44 +00:00
exec_elf64.c
exec_elf_common.c "a.out" -> "elf" in a comment 2002-05-31 16:49:12 +00:00
exec_macho.c
exec_script.c
exec_subr.c Fix a signed/unsigned comparison warning from GCC 3.3. 2002-08-25 19:13:08 +00:00
genassym.awk
genassym.sh
genlintstub.awk
init_main.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
init_sysent.c regen: claim syscall slots for kqueue(2) and kevent(2) 2002-09-04 07:46:25 +00:00
kern_acct.c
kern_allocsys.c Make nbuf, nswbuf, and bufpages unsigned. Make all operations on these 2002-08-25 20:21:33 +00:00
kern_clock.c Implement pmc(9) -- An interface to hardware performance monitoring 2002-08-07 05:14:47 +00:00
kern_descrip.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
kern_exec.c - Introduce a e_fault field in struct proc to provide emulation specific 2002-09-21 21:14:54 +00:00
kern_exit.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
kern_fork.c MI kernel support for user-level Restartable Atomic Sequences (RAS). 2002-08-28 07:16:33 +00:00
kern_kthread.c SIMPLEQ rototill: 2002-06-01 23:50:52 +00:00
kern_ktrace.c disallow ktrace on P_SUGID. from openbsd 2002-06-28 01:59:36 +00:00
kern_lkm.c uppercase the lkm kernel-userspace dev macros and prefix them with LKM_ 2002-09-18 22:59:36 +00:00
kern_lock.c print a stack trace in the "spinout" case too. 2002-09-14 21:42:42 +00:00
kern_malloc.c add a new km flag UVM_KMF_CANFAIL, which causes uvm_km_kmemalloc() to 2002-09-15 16:54:26 +00:00
kern_malloc_debug.c Don't pass VM_PROT_EXEC to pmap_kenter_pa(). 2002-08-14 15:21:31 +00:00
kern_ntptime.c Back out previous. 2002-05-03 01:22:30 +00:00
kern_physio.c Remove the old device buffer queue interface. 2002-08-30 15:43:36 +00:00
kern_proc.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
kern_prot.c Fix some signed/unsigned comparison warnings from GCC 3.3. 2002-08-25 21:30:40 +00:00
kern_ras.c MI kernel support for user-level Restartable Atomic Sequences (RAS). 2002-08-28 07:16:33 +00:00
kern_resource.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
kern_sig.c Separate the scheduler from the context switching code. 2002-09-22 05:36:48 +00:00
kern_subr.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
kern_synch.c Separate the scheduler from the context switching code. 2002-09-22 05:36:48 +00:00
kern_sysctl.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
kern_systrace.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
kern_time.c Implement the CLOCK_MONOTONIC clock for the posix/opengroup realtime 2002-01-31 00:13:07 +00:00
kern_xxx.c Use the number of args in the sysent rather than calculating it from the 2002-06-19 23:35:35 +00:00
kgdb_stub.c add support for the `D' kgdb detach command 2002-01-05 22:57:38 +00:00
makesyscalls.sh
subr_autoconf.c fix off-by-one error in string len check 2002-07-10 19:04:09 +00:00
subr_devsw.c Fix devsw_name2blk() to return the correct device name for devname arg. 2002-09-15 14:29:01 +00:00
subr_disk.c Remove the old device buffer queue interface. 2002-08-30 15:43:36 +00:00
subr_extent.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
subr_log.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
subr_pool.c Fix signed/unsigned comparison warnings from GCC 3.3. 2002-08-25 22:51:05 +00:00
subr_prf.c Casting from a pointer, to a db_expr_t, has to go via an intptr_t. 2002-08-26 11:34:27 +00:00
subr_prof.c
subr_prop.c Fix signed/unsigned comparison warnings from GCC 3.3. 2002-08-25 22:51:05 +00:00
subr_rmap.c
subr_userconf.c
subr_xxx.c
sys_generic.c Fix some signed/unsigned comparison warnings from GCC 3.3. 2002-08-25 23:15:21 +00:00
sys_pipe.c Fix signed/unsigned comparison warnings from GCC 3.3. 2002-08-25 23:16:39 +00:00
sys_pmc.c Only include sys/pmc.h if PERFCTRS is defined. 2002-08-07 11:13:40 +00:00
sys_process.c Attempt to protect restartable atomic sequences of a traced process 2002-08-28 07:27:14 +00:00
sys_socket.c
syscalls.c regen: claim syscall slots for kqueue(2) and kevent(2) 2002-09-04 07:46:25 +00:00
syscalls.conf
syscalls.master claim syscall slots for kqueue(2) and kevent(2) 2002-09-04 07:45:41 +00:00
sysv_ipc.c
sysv_msg.c Make the debugging printfs compile: 2002-03-05 23:28:58 +00:00
sysv_sem.c use the exithook mechanism to clean up semaphores. 2002-03-17 22:21:58 +00:00
sysv_shm.c Split off the backend of the shmat system call, and find removed segments 2002-04-03 11:53:01 +00:00
tty.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
tty_conf.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
tty_pty.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
tty_subr.c In clalloc(), clear the quoted char bitmap (part of the ring buffer was 2001-12-27 02:27:50 +00:00
tty_tb.c Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
tty_tty.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
uipc_domain.c Make domains extern. 2002-05-12 20:36:58 +00:00
uipc_mbuf.c Changes to allow the IPv4 and IPv6 layers to align headers themseves, 2002-06-30 22:40:32 +00:00
uipc_mbuf2.c in m_aux_delete, no need to chase beyond victim. from Archie Cobbs, sync w/kame 2002-05-23 05:45:34 +00:00
uipc_proto.c
uipc_socket.c Make use of page loaning for large socket writes the default. The 2002-08-21 05:13:36 +00:00
uipc_socket2.c In sbcompress(), if we toss an empty mbuf, make sure to update 2002-08-22 20:56:48 +00:00
uipc_syscalls.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
uipc_usrreq.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
vfs_bio.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
vfs_cache.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
vfs_getcwd.c
vfs_init.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
vfs_lockf.c Use the queue macros from <sys/queue.h> instead of referring to the queue 2002-09-04 01:32:31 +00:00
vfs_lookup.c Make NAMEI_DIAGNOSTIC compile. 2002-08-02 04:49:35 +00:00
vfs_subr.c Merge the gehenna-devsw branch into the trunk. 2002-09-06 13:18:43 +00:00
vfs_syscalls.c Add special handling of VFS_GETARGS (similar to VFS_UPDATE) so that it 2002-09-21 18:07:52 +00:00
vfs_vnops.c Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
vnode_if.c
vnode_if.sh
vnode_if.src