From 338d9ca7981f25099d99d280b0dd3af590d65763 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 22 Jan 2013 22:32:14 +0100 Subject: Add the mach_print debugging system call The purpose of this system call is to help debugging in situations where it's desirable to bypass the mach_msg call entirely. * include/mach/syscall_sw.h (mach_print): Generate system call code. * kern/syscall_subr.c: Include . [MACH_KDB] (mach_print): New function. * kern/syscall_subr.h (mach_print): New prototype. * kern/syscall_sw.c [MACH_KDB] (mach_trap_table): Declare mach_print system call. --- include/mach/syscall_sw.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/mach') diff --git a/include/mach/syscall_sw.h b/include/mach/syscall_sw.h index af14c8d..89597e9 100644 --- a/include/mach/syscall_sw.h +++ b/include/mach/syscall_sw.h @@ -52,6 +52,7 @@ kernel_trap(mach_reply_port,-26,0) kernel_trap(mach_thread_self,-27,0) kernel_trap(mach_task_self,-28,0) kernel_trap(mach_host_self,-29,0) +kernel_trap(mach_print,-30,1) kernel_trap(swtch_pri,-59,1) kernel_trap(swtch,-60,0) -- cgit v1.2.3