]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/syscall_sw.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
29 #ifndef _MACH_PPC_SYSCALL_SW_H_
30 #define _MACH_PPC_SYSCALL_SW_H_
32 #include <mach/machine/asm.h>
34 #define kernel_trap(trap_name,trap_number,number_args) \
35 ENTRY(trap_name, TAG_NO_FRAME_USED) @\
40 #define rpc_trap(trap_name,trap_number,number_args) \
41 ENTRY(trap_name, TAG_NO_FRAME_USED) @\
46 /* CHECKME! What is this supposed to do? */
47 #define rpc_return_trap(trap_name,trap_number,number_args) \
48 ENTRY(trap_name, TAG_NO_FRAME_USED) @\
53 #define ppc_trap(trap_name,trap_number) \
54 ENTRY(trap_name, TAG_NO_FRAME_USED) @\
60 * Put any definitions for PPC-only system calls in here (only if
61 * this file is being included from the one that instantiates the
64 * Note: PPC-only system calls are in the 0x6000 to 0x6FFF range
66 #ifdef _MACH_SYSCALL_SW_H_
67 ppc_trap(diagCall
,0x6000)
68 ppc_trap(vmm_get_version
,0x6001)
69 ppc_trap(vmm_get_features
,0x6002)
70 ppc_trap(vmm_init_context
,0x6003)
71 ppc_trap(vmm_dispatch
,0x6004)
72 ppc_trap(bb_enable_bluebox
,0x6005)
73 ppc_trap(bb_disable_bluebox
,0x6006)
74 ppc_trap(bb_settaskenv
,0x6007)
75 ppc_trap(vmm_stop_vm
,0x6008)
76 ppc_trap(CHUDCall
,0x6009)
77 #endif /* _MACH_SYSCALL_SW_H_ */
79 #endif /* _MACH_PPC_SYSCALL_SW_H_ */