NetBSD/sys/kern
manu 26200ee754 In MacOS X.3, the kernel maps tw opages of memory in every user process.
This areas is called the comm pages. It is used to provide fast access to
several data and functions.

The comm pages are mapped starting at 0xffff800 (address chosed so that
absolute branch can be used, so it can be accessed even when dynamic linking
is not ready). NetBSD has the user stack here, so we need to provide a
Darwin-specific stack setup routine which sets the top of the stack at
0xbfff0000.

This implementation is not complete but it does enough to get MacOS X.3
starting again (static binaries run, dynamic binaries still have an issue).
in the comm pages functions, we only implement bcopy, pthread_self and
memcpy.

TODO:
- clean up the powerpc specific code from MD parts
- for now we map only one page to avoid a crash, we want two pages.
- write all the comm functions.
2004-07-03 00:14:30 +00:00
..
cnmagic.c TNF & remove trailing spaces. 2003-08-22 02:01:32 +00:00
core_elf32.c kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
core_elf64.c
core_netbsd.c handle siginfo for deferred signals. Allocate a ksiginfo pool, and store 2003-09-14 06:59:13 +00:00
exec_aout.c Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
exec_conf.c In MacOS X.3, the kernel maps tw opages of memory in every user process. 2004-07-03 00:14:30 +00:00
exec_ecoff.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_elf32.c Back out >2 PT_LOAD changes from rev 1.96. They cause older GCC3-compiled 2004-01-07 16:42:53 +00:00
exec_elf64.c
exec_macho.c - Nuke __P(). 2004-03-23 13:22:32 +00:00
exec_script.c kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
exec_subr.c Expand NEW_VMCMD() macro to a real function new_vmcmd() for the 2003-08-29 01:44:02 +00:00
genassym.awk
genassym.sh
genlintstub.awk This program is called genlintstub.awk 2003-05-20 20:25:31 +00:00
init_main.c Initialize simple_lock in struct cwd; otherwise, one gets an 2004-06-03 20:35:30 +00:00
init_sysctl.c (off_t)(long) is wrong when it comes to kernel addresses [because on a 32 bit 2004-05-26 16:28:05 +00:00
init_sysent.c Regen from syscalls.master rev. 1.142: 2004-05-10 22:30:41 +00:00
kern_acct.c Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
kern_clock.c statclock: don't assume hz==100 when determining frequency to call schedclock. 2004-07-01 12:36:57 +00:00
kern_descrip.c Implement mutexes for file descriptor and current working directory access. 2004-05-31 15:30:55 +00:00
kern_event.c Initialise (most) pools from a link set instead of explicit calls 2004-04-25 16:42:40 +00:00
kern_exec.c add a workaround for PR 25664 (failure to map sigcode for Tru64 binaries). 2004-06-27 00:55:08 +00:00
kern_exit.c cwdfree() signature has been changed to accomodate fine-grained locking. 2004-05-31 15:33:38 +00:00
kern_fork.c Provide a mutex for the process limits data structure. 2004-05-06 22:20:30 +00:00
kern_kcont.c Initialise (most) pools from a link set instead of explicit calls 2004-04-25 16:42:40 +00:00
kern_ksyms.c Move detection of a special symbol into a separate function. Add some more 2004-02-19 03:42:01 +00:00
kern_kthread.c
kern_ktrace.c Explain why the comment is a lie. 2004-06-24 15:06:35 +00:00
kern_lkm.c - Nuke __P(). 2004-03-23 13:22:32 +00:00
kern_lock.c lockmgr: add a comment about LK_RETRY. 2004-05-31 09:05:10 +00:00
kern_lwp.c In proc_representative_lwp, if there is an outstanding trap signal, return 2004-05-12 21:10:09 +00:00
kern_malloc_debug.c Initialise (most) pools from a link set instead of explicit calls 2004-04-25 16:42:40 +00:00
kern_malloc.c Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
kern_microtime.c Multiply before divide, correcting a mistake introduced by revision 1.7. 2004-06-27 15:21:30 +00:00
kern_ntptime.c Lots of sysctl descriptions (if someone wants to help out here, that 2004-04-08 06:20:29 +00:00
kern_physio.c - Nuke __P(). 2004-03-23 13:22:32 +00:00
kern_proc.c Provide a mutex for the process limits data structure. 2004-05-06 22:20:30 +00:00
kern_prot.c crcopy: no need to lock if we're only reading the structure's reference count. 2004-05-04 21:27:28 +00:00
kern_ras.c ras_fork: don't do PR_WAITOK holding a spinlock. 2004-04-01 02:37:42 +00:00
kern_resource.c KNF previous. 2004-05-13 17:56:14 +00:00
kern_sa.c use lockstatus() instead of L_BIGLOCK to check if we're holding a biglock. 2004-05-18 11:59:11 +00:00
kern_sig.c PAGE_SIZE is apparently not a constant on the sparc port, so don't 2004-06-08 19:35:30 +00:00
kern_subr.c Add prototype for uiomove_frombuf. Change uiomove_frombuf to use size_t 2004-04-21 20:31:50 +00:00
kern_synch.c use lockstatus() instead of L_BIGLOCK to check if we're holding a biglock. 2004-05-18 11:59:11 +00:00
kern_sysctl.c In sysctl_destroyv, the newly created dnode structure must have its 2004-05-12 12:21:39 +00:00
kern_systrace.c (off_t)(long) is wrong when it comes to kernel addresses [because on a 32 bit 2004-05-26 16:28:05 +00:00
kern_time.c Fix "comments within comments" problem pointed out by Geoff Wing on 2004-04-27 05:25:33 +00:00
kern_timeout.c Make callout_setfunc() a CPP macro. Suggested by enami. 2003-10-30 04:32:56 +00:00
kern_uuid.c uuidgen(2) syscall. Originally from FreeBSD, ported by John Franklin in 2004-01-29 02:00:02 +00:00
kern_verifiedexec.c Remove spurious space accidently introduced in last. 2003-11-18 13:13:03 +00:00
kern_xxx.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kgdb_stub.c kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
Make.tags.inc
Makefile We have CVS; there is no reason to make .bak files when generating the 2003-11-15 20:26:02 +00:00
makesyscalls.sh Keep track of which prototypes we declared already so that we don't 2003-09-30 20:34:28 +00:00
subr_autoconf.c split off the evcnt code (which is unrelated to autoconfiguration) 2004-02-17 05:03:15 +00:00
subr_devsw.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
subr_disk_mbr.c Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
subr_disk.c - add a function prototype. 2004-03-09 12:23:07 +00:00
subr_evcnt.c Include "sys/systm.h" to get the prototype for panic() which is required 2004-02-17 08:22:12 +00:00
subr_extent.c - Nuke __P(). 2004-03-23 13:22:32 +00:00
subr_log.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
subr_pool.c Remove PR_IMMEDRELEASE, since setting the high water mark will achieve 2004-06-20 18:19:27 +00:00
subr_prf.c Nuke __P(). 2004-03-23 13:22:03 +00:00
subr_prof.c Lots of sysctl descriptions (if someone wants to help out here, that 2004-04-08 06:20:29 +00:00
subr_prop.c Remove trailing blank line. 2003-12-21 11:54:16 +00:00
subr_userconf.c kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
subr_xxx.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
sys_generic.c Nuke __P(). 2004-03-23 13:22:03 +00:00
sys_pipe.c Initialise (most) pools from a link set instead of explicit calls 2004-04-25 16:42:40 +00:00
sys_pmc.c
sys_process.c Don't check for negative offset in the memory case. 64 bit addresses can 2004-06-22 02:06:55 +00:00
sys_socket.c Eliminate several uses of `curproc' from the socket-layer code and from NFS. 2004-05-22 22:52:13 +00:00
syscalls.c Regen from syscalls.master rev. 1.142: 2004-05-10 22:30:41 +00:00
syscalls.conf Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
syscalls.master POSIX-2001: Change readlink(2)'s return type from int to ssize_t. 2004-05-10 22:28:23 +00:00
sysv_ipc.c
sysv_msg.c Nuke __P(). 2004-03-23 13:22:03 +00:00
sysv_sem.c Nuke __P(). 2004-03-23 13:22:03 +00:00
sysv_shm.c Initialise (most) pools from a link set instead of explicit calls 2004-04-25 16:42:40 +00:00
tty_conf.c - Nuke __P(). 2004-03-23 13:22:32 +00:00
tty_pty.c ptm is now mandatory, depends on pty, and can be disabled with -DNO_DEV_PTM 2004-06-18 15:02:29 +00:00
tty_subr.c Nuke __P(). 2004-03-23 13:22:03 +00:00
tty_tb.c Nuke __P(). 2004-03-23 13:22:03 +00:00
tty_tty.c Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +00:00
tty.c Remaining sysctl descriptions under kern subtree 2004-05-25 04:30:32 +00:00
uipc_domain.c Sysctl descriptions under net subtree (net.key not done) 2004-05-25 04:33:59 +00:00
uipc_mbuf2.c Add m_tag_delete_nonpesrsistent(), for deleting all packet tags on 2003-11-13 01:48:12 +00:00
uipc_mbuf.c Rename MBUFTRACE helper function m_claim() to m_claimm(), 2004-06-24 04:15:50 +00:00
uipc_proto.c Constify protosw arrays. This can reduce the kernel .data section by 2004-04-22 01:01:40 +00:00
uipc_sem.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
uipc_socket2.c Rename MBUFTRACE helper function m_claim() to m_claimm(), 2004-06-24 04:15:50 +00:00
uipc_socket.c bump sb_timeo from short to int to allow longer timeouts. 2004-07-01 12:42:57 +00:00
uipc_syscalls.c Eliminate several uses of `curproc' from the socket-layer code and from NFS. 2004-05-22 22:52:13 +00:00
uipc_usrreq.c Eliminate several uses of `curproc' from the socket-layer code and from NFS. 2004-05-22 22:52:13 +00:00
vfs_bio.c - Add flag L_COWINPROGRESS to struct lwp to avoid recursion when 2004-06-20 18:55:58 +00:00
vfs_cache.c introduce a new function, cache_lookup_raw(), for filesystems which 2004-06-27 08:50:44 +00:00
vfs_getcwd.c Nuke __P(). 2004-03-23 13:22:03 +00:00
vfs_init.c Nuke __P(). 2004-03-23 13:22:03 +00:00
vfs_lockf.c Initialise (most) pools from a link set instead of explicit calls 2004-04-25 16:42:40 +00:00
vfs_lookup.c Fix the last commit(s). On machines with sizeof(long) != sizeof(int) 2003-12-08 14:23:33 +00:00
vfs_subr.c Keep a pointer to the leaf mount. Needed for write gating where a 2004-07-01 10:03:29 +00:00
vfs_syscalls.c Keep a pointer to the leaf mount. Needed for write gating where a 2004-07-01 10:03:29 +00:00
vfs_vnops.c vn_lock: add an assertion about usecount. 2004-05-31 09:02:51 +00:00
vnode_if.c regen. 2004-05-27 12:50:35 +00:00
vnode_if.sh Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern. 2004-01-25 18:02:04 +00:00
vnode_if.src update to match with the recent reality: getpages doesn't care about 2004-05-27 12:49:09 +00:00