NetBSD/sys/kern
ad 9b7896c50a A workaround for a bug with some Opteron revisions where locked operations
sometimes do not serve as memory barriers, allowing memory references to
bleed outside of critical sections.  It's possible that this is the
reason for pkgbuild's longstanding crashiness.

For rwlocks, always enable the explicit membars. They were disabled only
on x86, and since they are not in the fast-path it's not a big deal.
TODO: convert these to an atomic_membar_foo() or similar that does ordering
between regular data references and atomic references.
2009-04-24 17:53:06 +00:00
..
bufq_disksort.c malloc -> kmem_alloc 2009-01-19 14:54:28 +00:00
bufq_fcfs.c malloc -> kmem_alloc 2009-01-19 14:54:28 +00:00
bufq_priocscan.c malloc -> kmem_alloc 2009-01-19 14:54:28 +00:00
bufq_readprio.c malloc -> kmem_alloc 2009-01-19 14:54:28 +00:00
cnmagic.c
core_elf32.c
core_elf64.c
core_netbsd.c
exec_aout.c
exec_ecoff.c
exec_elf32.c
exec_elf64.c
exec_elf.c kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
exec_macho.c
exec_script.c
exec_subr.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
genlintstub.awk
init_main.c call rw_obj_init() 2009-04-19 14:04:51 +00:00
init_sysctl.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
init_sysent.c Regen to prove I didn't screw up the conversion: purely RCSID changes. 2009-01-13 22:33:11 +00:00
kern_acct.c s/NOFOLLOW/FOLLOW/ in NDINIT so that it matches actual behavior 2009-02-11 00:32:45 +00:00
kern_auth.c fix sign-compare issues 2009-04-05 11:48:02 +00:00
kern_cctr.c remove extra semicolons. 2009-01-03 03:31:23 +00:00
kern_clock.c
kern_condvar.c Make condvars really opaque -- hide the wait message member from consumers 2008-12-19 07:57:28 +00:00
kern_core.c merge christos-time_t 2009-01-11 02:45:45 +00:00
kern_cpu.c cpuctl: 2009-04-19 14:11:36 +00:00
kern_descrip.c Add fileops::fo_drain(), to be called from fd_close() when there is more 2009-04-04 10:12:51 +00:00
kern_drvctl.c Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did. 2009-04-11 23:05:26 +00:00
kern_event.c Add fileops::fo_drain(), to be called from fd_close() when there is more 2009-04-04 10:12:51 +00:00
kern_exec.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
kern_exit.c - proc_free(): no need assign 'p->p_pptr' to 'parent' many times, 2009-03-28 21:38:55 +00:00
kern_fileassoc.c
kern_fork.c use kauth instead of uid != 0 2009-03-24 21:00:05 +00:00
kern_idle.c
kern_ksyms.c ansify function definitions 2009-03-15 17:14:40 +00:00
kern_kthread.c Fix a tyop in the previous commit 2009-01-30 04:09:35 +00:00
kern_ktrace.c merge christos-time_t 2009-01-11 02:45:45 +00:00
kern_lock.c
kern_lwp.c Update the big comment block. 2009-04-04 22:34:03 +00:00
kern_malloc_debug.c
kern_malloc_stdtype.c
kern_malloc.c Missed realloc in previous. Ride 5.99.6 bump. 2009-01-07 21:06:31 +00:00
kern_module.c Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h" 2009-02-13 22:41:00 +00:00
kern_mutex.c mutex_vector_enter: few predictions. 2009-01-25 04:45:14 +00:00
kern_ntptime.c remove !NTP stub. 2009-01-11 21:00:11 +00:00
kern_pax.c
kern_physio.c
kern_pmf.c Do not interleave device detachment with device shutdown. Instead, try 2009-04-17 20:45:09 +00:00
kern_proc.c - Manage pid_table with kmem(9). 2009-04-16 14:56:41 +00:00
kern_prot.c
kern_ras.c
kern_rate.c
kern_resource.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
kern_runq.c If DEBUG is enabled, drop kpreempt_pri to zero. It means that every 2009-03-02 21:17:29 +00:00
kern_rwlock.c A workaround for a bug with some Opteron revisions where locked operations 2009-04-24 17:53:06 +00:00
kern_sig.c kpsignal2: do not start process (when it is stopped) for all termination 2009-03-29 05:02:46 +00:00
kern_sleepq.c Allocate sleep queue locks with mutex_obj_alloc. Reduces memory usage 2009-03-21 13:11:14 +00:00
kern_softint.c Fix spelling. 2009-04-06 21:22:47 +00:00
kern_ssp.c If sys/param.h is not included, the kernel compile fails on some platforms 2009-02-26 05:50:54 +00:00
kern_stub.c Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h" 2009-02-13 22:41:00 +00:00
kern_subr.c In humanize_number(), avoid an integer overflow if the buffer 2009-04-02 17:25:24 +00:00
kern_synch.c kpreempt: fix another bug, uintptr_t -> bool truncation. 2009-04-16 21:19:23 +00:00
kern_sysctl.c Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive 2009-04-15 20:44:24 +00:00
kern_tc.c merge christos-time_t 2009-01-11 02:45:45 +00:00
kern_time.c Move the internal poll/select related API's to use timespec instead 2009-03-29 19:21:19 +00:00
kern_timeout.c Allocate sleep queue locks with mutex_obj_alloc. Reduces memory usage 2009-03-21 13:11:14 +00:00
kern_todr.c Fix 'boot -z' bogons. 2009-03-21 15:01:56 +00:00
kern_turnstile.c Allocate sleep queue locks with mutex_obj_alloc. Reduces memory usage 2009-03-21 13:11:14 +00:00
kern_uidinfo.c uid_init: maxproc -> maxcpus 2009-03-22 00:49:13 +00:00
kern_uuid.c
kern_verifiedexec.c PR/41251: YAMAMOTO Takashi: veriexec locking seems broken 2009-04-20 22:09:54 +00:00
kern_xxx.c
kgdb_stub.c make kgdb_dev a dev_t 2009-01-11 10:20:53 +00:00
Make.tags.inc
Makefile
makesyscalls.sh Include some headers to make rump_syscalls.h self-contained. 2009-03-29 07:56:19 +00:00
sched_4bsd.c
sched_m2.c
subr_autoconf.c During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
subr_blist.c
subr_bufq.c malloc -> kmem_alloc 2009-01-19 14:54:28 +00:00
subr_callback.c
subr_debug.c
subr_devsw.c Add support for loading pseudo-device drivers. Try to autoload modules from 2009-02-02 14:00:27 +00:00
subr_disk_mbr.c Don't claim its an ISO partitioning scheme too early in the label. An MBR 2009-01-28 15:26:28 +00:00
subr_disk.c Add disk_isbusy(), iostat_isbusy(). 2009-04-04 07:30:09 +00:00
subr_evcnt.c protect allevents list with a mutex 2009-03-29 18:21:06 +00:00
subr_exec_fd.c
subr_extent.c
subr_hash.c
subr_iostat.c Add disk_isbusy(), iostat_isbusy(). 2009-04-04 07:30:09 +00:00
subr_kmem.c kernel memory guard for DEBUG kernels, proposed on tech-kern. 2009-03-29 10:51:53 +00:00
subr_kobj.c Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h" 2009-02-13 22:41:00 +00:00
subr_lockdebug.c
subr_log.c
subr_once.c ansify function definitions 2009-03-15 17:14:40 +00:00
subr_optstr.c
subr_pcq.c
subr_percpu.c Start percpu allocation at (ALIGNBYTES + 1) to avoid problem with importing 2008-12-15 11:59:22 +00:00
subr_pool.c pool_cache_put_paddr: add an assertion. 2009-04-15 11:45:18 +00:00
subr_prf.c ansify function definitions 2009-03-15 17:14:40 +00:00
subr_prof.c
subr_specificdata.c
subr_syscall_stats.c
subr_tftproot.c bzero -> memset 2009-03-18 16:00:08 +00:00
subr_time.c
subr_userconf.c
subr_vmem.c Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
subr_workqueue.c workqueue_finiqueue: our stack could be swapped out while enqueued to 2009-04-03 19:34:19 +00:00
subr_xcall.c xc_lowpri: don't truncate `where' from uint64_t to u_int. 2009-03-05 13:18:51 +00:00
sys_aio.c PR kern/26878 FFSv2 + softdep = livelock (no free ram) 2009-02-22 20:28:05 +00:00
sys_descrip.c sys_fcntl: use FD_CLOEXEC, instead of magic number '1'. 2009-03-28 21:42:19 +00:00
sys_generic.c
sys_lwp.c _lwp_setprivate: provide the value to MD code if a hook is present. 2009-03-29 09:24:52 +00:00
sys_module.c
sys_mqueue.c Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did. 2009-04-11 23:05:26 +00:00
sys_pipe.c Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did. 2009-04-11 23:05:26 +00:00
sys_pmc.c
sys_process.c PR kern/36183 problem with ptrace and multithreaded processes 2009-02-04 21:17:39 +00:00
sys_pset.c lwp_create: fix the locking bugs on affinity ingerition path (mea culpa). 2009-03-03 21:55:06 +00:00
sys_sched.c lwp_create: fix the locking bugs on affinity ingerition path (mea culpa). 2009-03-03 21:55:06 +00:00
sys_select.c Move the internal poll/select related API's to use timespec instead 2009-03-29 19:21:19 +00:00
sys_sig.c - use itimespecfix to detect invalid timespecs 2009-03-29 17:54:12 +00:00
sys_socket.c soo_ioctl: 2009-04-08 21:02:09 +00:00
sys_syscall.c
syscalls.c Regen to prove I didn't screw up the conversion: purely RCSID changes. 2009-01-13 22:33:11 +00:00
syscalls.conf
syscalls.master mark a bunch of syscalls as RUMP 2009-03-28 16:33:40 +00:00
sysv_ipc.c Replace malloc with kmem(9). 2009-04-16 14:55:44 +00:00
sysv_msg.c Do not call put_type() but use copyout() when returning the message 2009-01-28 00:59:03 +00:00
sysv_sem.c merge christos-time_t 2009-01-11 02:45:45 +00:00
sysv_shm.c Remove SHMMAXPGS from all kernel configs. Dynamically compute the 2009-03-06 20:31:46 +00:00
tty_bsdpty.c malloc -> kmem_alloc 2009-01-22 14:38:34 +00:00
tty_conf.c
tty_ptm.c malloc -> kmem_alloc 2009-01-22 14:38:34 +00:00
tty_pty.c KNF. ANSI'fy. 2009-03-09 16:19:22 +00:00
tty_subr.c KNF. ANSI'fy. 2009-03-09 16:19:22 +00:00
tty_tty.c
tty.c Avoid deadlock in tty code if a terminal emulation responds to 2009-01-22 20:40:20 +00:00
uipc_accf.c
uipc_domain.c ansify function definitions 2009-03-15 17:14:40 +00:00
uipc_mbuf2.c Remove extra whitespace added by a stupid tool. 2009-04-18 14:58:02 +00:00
uipc_mbuf.c m_split0(): If the newly allocated mbuf holds only the header, 2009-04-05 16:31:21 +00:00
uipc_proto.c
uipc_sem.c
uipc_socket2.c sonewconn: add an assertion. 2009-04-09 00:43:38 +00:00
uipc_socket.c Add fileops::fo_drain(), to be called from fd_close() when there is more 2009-04-04 10:12:51 +00:00
uipc_syscalls.c Add fileops::fo_drain(), to be called from fd_close() when there is more 2009-04-04 10:12:51 +00:00
uipc_usrreq.c 0 -> NULL 2009-04-09 00:57:15 +00:00
vfs_bio.c like KERN_FILE2: *do* update "needed" when there is no count. we want 2009-03-11 05:55:22 +00:00
vfs_cache.c cache_lookup_entry: add an assertion. 2009-02-18 13:36:11 +00:00
vfs_cwd.c
vfs_dirhash.c Previous code ususally works since compiler won't put gap between 2009-02-06 23:56:26 +00:00
vfs_getcwd.c malloc -> kmem_alloc. 2009-01-17 07:02:35 +00:00
vfs_hooks.c ansify function definitions 2009-03-15 17:14:40 +00:00
vfs_init.c malloc -> kmem_alloc. 2009-01-17 07:02:35 +00:00
vfs_lockf.c
vfs_lookup.c Make module (auto)loading under chroot envrionment actually work: 2009-02-11 00:19:11 +00:00
vfs_subr.c Per discussion on tech-kern@: 2009-04-22 22:57:08 +00:00
vfs_syscalls.c do_sys_unlink: remove an unused credential. 2009-03-13 11:05:26 +00:00
vfs_trans.c
vfs_vnops.c Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did. 2009-04-11 23:05:26 +00:00
vfs_wapbl.c fix sign-compare issues 2009-04-05 11:48:02 +00:00
vfs_xattr.c
vnode_if.c
vnode_if.sh
vnode_if.src