X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..91447636331957f3d9b5ca5b508f07c526b0074d:/osfmk/mach/i386/syscall_sw.h diff --git a/osfmk/mach/i386/syscall_sw.h b/osfmk/mach/i386/syscall_sw.h index 16104a874..1ee827e0f 100644 --- a/osfmk/mach/i386/syscall_sw.h +++ b/osfmk/mach/i386/syscall_sw.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -22,94 +22,6 @@ /* * @OSF_COPYRIGHT@ */ -/* - * HISTORY - * - * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez - * Import of Mac OS X kernel (~semeria) - * - * Revision 1.2 1998/04/29 17:36:36 mburg - * MK7.3 merger - * - * Revision 1.2.22.1 1998/02/03 09:32:55 gdt - * Merge up to MK7.3 - * [1998/02/03 09:17:02 gdt] - * - * Revision 1.2.20.1 1997/06/17 03:00:55 devrcs - * RPC Enhancements. - * Added new definition of the rpc_return_trap. - * [1996/04/26 21:53:51 yfei] - * - * Revision 1.2.17.2 1996/02/16 00:07:27 yfei - * Merged NSWC based RPC enhancements into MK7_MAIN. - * - * Revision 1.2.12.2 1994/09/23 02:37:42 ezf - * change marker to not FREE - * [1994/09/22 21:40:17 ezf] - * - * Revision 1.2.12.1 1994/08/26 20:48:44 watkins - * Merge with rt2_shared. - * [1994/08/26 18:38:55 watkins] - * - * Revision 1.2.9.1 1994/07/18 22:03:32 burke - * Check-in for merge. - * [1994/07/15 21:04:49 burke] - * - * Revision 1.2.7.3 1994/07/05 14:28:23 watkins - * Merge with rpc. - * [1994/07/05 14:27:30 watkins] - * - * Revision 1.2.6.1 1994/05/18 21:18:29 watkins - * Add macro for rpc call gate. - * [1994/05/18 21:16:19 watkins] - * - * Revision 1.2.2.2 1993/06/09 02:40:45 gm - * Added to OSF/1 R1.3 from NMK15.0. - * [1993/06/02 21:16:24 jeffc] - * - * Revision 1.2 1993/04/19 16:34:14 devrcs - * Fixes for ANSI C - * [1993/02/26 13:35:10 sp] - * - * Revision 1.1 1992/09/30 02:30:50 robert - * Initial revision - * - * $EndLog$ - */ -/* CMU_HIST */ -/* - * Revision 2.5 91/05/14 16:52:22 mrt - * Correcting copyright - * - * Revision 2.4 91/02/05 17:32:17 mrt - * Changed to new Mach copyright - * [91/02/01 17:10:01 mrt] - * - * Revision 2.3 90/12/05 23:46:16 af - * Made GNU preproc happy. - * - * Revision 2.2 90/05/03 15:48:01 dbg - * Created. - * [90/04/30 16:36:25 dbg] - * - * Revision 1.3.1.1 89/12/22 22:22:03 rvb - * Use asm.h - * [89/12/22 rvb] - * - * Revision 1.3 89/03/09 20:19:53 rpd - * More cleanup. - * - * Revision 1.2 89/02/26 13:01:00 gm0w - * Changes for cleanup. - * - * 31-Dec-88 Robert Baron (rvb) at Carnegie-Mellon University - * Derived from MACH2.0 vax release. - * - * 1-Sep-86 Michael Young (mwyoung) at Carnegie-Mellon University - * Created from mach_syscalls.h in the user library sources. - * - */ -/* CMU_ENDHIST */ /* * Mach Operating System * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University @@ -138,13 +50,14 @@ /* */ +#ifdef PRIVATE + #ifndef _MACH_I386_SYSCALL_SW_H_ #define _MACH_I386_SYSCALL_SW_H_ #include #define MACHCALLSEL $0x07 -#define RPCCALLSEL $0x0f #define kernel_trap(trap_name,trap_number,number_args) \ LEAF(_##trap_name,0) ;\ @@ -152,17 +65,6 @@ LEAF(_##trap_name,0) ;\ lcall MACHCALLSEL, $0 ;\ END(_##trap_name) -#define rpc_trap(trap_name,trap_number,number_args) \ -LEAF(_##trap_name,0) ;\ - movl $##trap_number,%eax; \ - lcall RPCCALLSEL, $0 ;\ -END(_##trap_name) - -#define rpc_return_trap(trap_name,trap_number,number_args) \ -LEAF(_##trap_name,0) ;\ - movl %eax, %ecx; \ - movl $##trap_number,%eax; \ - lcall RPCCALLSEL, $0 ;\ -END(_##trap_name) - #endif /* _MACH_I386_SYSCALL_SW_H_ */ + +#endif /* PRIVATE */