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. --- kern/syscall_subr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'kern/syscall_subr.h') diff --git a/kern/syscall_subr.h b/kern/syscall_subr.h index 2b8bcd36..a2e39205 100644 --- a/kern/syscall_subr.h +++ b/kern/syscall_subr.h @@ -36,5 +36,6 @@ extern int swtch_pri(int); extern int thread_switch(mach_port_t, int, mach_msg_timeout_t); extern void thread_depress_timeout(thread_t); extern kern_return_t thread_depress_abort(thread_t); +extern void mach_print(const char *); #endif /* _KERN_SYSCALL_SUBR_H_ */ -- cgit v1.2.3