NetBSD/sys/compat/darwin
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
..
darwin_attr.c Use crdup(), instead of crget()+memcpy(). 2004-05-02 12:32:22 +00:00
darwin_attr.h
darwin_commpage.c In MacOS X.3, the kernel maps tw opages of memory in every user process. 2004-07-03 00:14:30 +00:00
darwin_commpage.h In MacOS X.3, the kernel maps tw opages of memory in every user process. 2004-07-03 00:14:30 +00:00
darwin_exec.c In MacOS X.3, the kernel maps tw opages of memory in every user process. 2004-07-03 00:14:30 +00:00
darwin_exec.h In MacOS X.3, the kernel maps tw opages of memory in every user process. 2004-07-03 00:14:30 +00:00
darwin_ioctl.c
darwin_ioctl.h
darwin_ioframebuffer.c
darwin_ioframebuffer.h
darwin_iohidsystem.c
darwin_iohidsystem.h
darwin_iokit.c
darwin_iokit.h
darwin_mman.c
darwin_mount.c Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
darwin_mount.h
darwin_proc.h
darwin_ptrace.c
darwin_ptrace.h
darwin_signal.c
darwin_signal.h
darwin_stat.c
darwin_syscall.h
darwin_syscallargs.h
darwin_syscalls.c
darwin_sysctl.c Sysctl descriptions under emul subtree. 2004-05-25 04:29:08 +00:00
darwin_sysctl.h
darwin_sysent.c
darwin_thread.c
darwin_types.h
darwin_unistd.c
files.darwin In MacOS X.3, the kernel maps tw opages of memory in every user process. 2004-07-03 00:14:30 +00:00
Makefile
syscalls.conf
syscalls.master