Subject: CVS commit: syssrc/sys
To: None <source-changes@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 12/17/2002 20:42:58
Module Name:	syssrc
Committed By:	manu
Date:		Tue Dec 17 18:42:58 UTC 2002

Modified Files:
	syssrc/sys/compat/mach: mach_bootstrap.c mach_bootstrap.h mach_clock.c
	    mach_clock.h mach_errno.c mach_errno.h mach_exec.c mach_exec.h
	    mach_host.c mach_host.h mach_message.c mach_message.h mach_port.c
	    mach_port.h mach_semaphore.c mach_semaphore.h mach_task.c
	    mach_task.h mach_thread.c mach_thread.h mach_vm.c mach_vm.h
	syssrc/sys/kern: kern_ktrace.c

Log Message:
Added support for exchange of Mach messages between processes.

This does not buy us new functionnality for now, because we still have to
discover how mach_init (which acts as a name server, enabling processes to
discover each other's ports) is able to receive messages from other processes
(this is a bootstrap problem, and the bootstrap port might be the place to
search).

While we are there:
- removed a lot of debug which is now available using ktrace.
- reworked message handling to avoid mutliple copyin/copyout of the
same data. ktrace of Mach message now uses the in-kernel copy of the
message instead of copying it from userland.
- packed mach trap handlers arguments into a structure to avoid modifying
everything next time we have to add an argument.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 syssrc/sys/compat/mach/mach_bootstrap.c \
    syssrc/sys/compat/mach/mach_clock.h \
    syssrc/sys/compat/mach/mach_semaphore.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/compat/mach/mach_bootstrap.h \
    syssrc/sys/compat/mach/mach_semaphore.h
cvs rdiff -r1.4 -r1.5 syssrc/sys/compat/mach/mach_clock.c \
    syssrc/sys/compat/mach/mach_errno.h syssrc/sys/compat/mach/mach_task.h \
    syssrc/sys/compat/mach/mach_thread.h
cvs rdiff -r1.8 -r1.9 syssrc/sys/compat/mach/mach_errno.c \
    syssrc/sys/compat/mach/mach_exec.h syssrc/sys/compat/mach/mach_message.h
cvs rdiff -r1.15 -r1.16 syssrc/sys/compat/mach/mach_exec.c \
    syssrc/sys/compat/mach/mach_host.c syssrc/sys/compat/mach/mach_port.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/compat/mach/mach_host.h \
    syssrc/sys/compat/mach/mach_port.h
cvs rdiff -r1.3 -r1.4 syssrc/sys/compat/mach/mach_message.c
cvs rdiff -r1.11 -r1.12 syssrc/sys/compat/mach/mach_task.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/compat/mach/mach_thread.c
cvs rdiff -r1.20 -r1.21 syssrc/sys/compat/mach/mach_vm.c
cvs rdiff -r1.10 -r1.11 syssrc/sys/compat/mach/mach_vm.h
cvs rdiff -r1.63 -r1.64 syssrc/sys/kern/kern_ktrace.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.