]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/PPCcalls.h
5d5f75f5136aa56dc4ca16796e6af1328e64cfcf
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
25 * Add an "PPCTRAP(routine)" to the table below
27 * Add trap definition to mach/ppc/syscall_sw.h and
28 * recompile user library.
31 * The maximum number of calls is 0x1000 (4096 for the hexually challanged)
35 typedef int (*PPCcallEnt
)(struct savearea
*save
);
37 #define PPCcall(rout) rout
38 #define dis (PPCcallEnt)0
40 PPCcallEnt PPCcalls
[] = {
42 PPCcall(diagCall
), /* 0x6000 Call diagnostics routines */
43 PPCcall(vmm_get_version
), /* 0x6001 Get Virtual Machine Monitor version */
44 PPCcall(vmm_get_features
), /* 0x6002 Get Virtual Machine Monitor supported features */
45 PPCcall(vmm_init_context
), /* 0x6003 Initialize a VMM context */
46 PPCcall(vmm_dispatch
), /* 0x6004 Dispatch a Virtual Machine Monitor call */
47 PPCcall(bb_enable_bluebox
), /* 0x6005 Enable this thread for use in the blue box virtual machine */
48 PPCcall(bb_disable_bluebox
), /* 0x6006 Disable this thread for use in the blue box virtual machine */
49 PPCcall(bb_settaskenv
), /* 0x6007 Set the BlueBox per thread task environment data */
50 PPCcall(vmm_stop_vm
), /* 0x6008 Stop a running VM */
52 PPCcall(dis
), /* 0x6009 CHUD Interface hook */
54 PPCcall(ppcNull
), /* 0x600A Null PPC syscall */
55 PPCcall(perfmon_control
), /* 0x600B performance monitor */
56 PPCcall(ppcNullinst
), /* 0x600C Instrumented Null PPC syscall */
57 PPCcall(dis
), /* 0x600D disabled */
58 PPCcall(dis
), /* 0x600E disabled */
59 PPCcall(dis
), /* 0x600F disabled */
60 PPCcall(dis
), /* 0x6010 disabled */
61 PPCcall(dis
), /* 0x6011 disabled */
62 PPCcall(dis
), /* 0x6012 disabled */
63 PPCcall(dis
), /* 0x6013 disabled */
64 PPCcall(dis
), /* 0x6014 disabled */
65 PPCcall(dis
), /* 0x6015 disabled */
66 PPCcall(dis
), /* 0x6016 disabled */
67 PPCcall(dis
), /* 0x6017 disabled */
68 PPCcall(dis
), /* 0x6018 disabled */
69 PPCcall(dis
), /* 0x6019 disabled */
70 PPCcall(dis
), /* 0x601A disabled */
71 PPCcall(dis
), /* 0x601B disabled */
72 PPCcall(dis
), /* 0x601C disabled */
73 PPCcall(dis
), /* 0x601D disabled */
74 PPCcall(dis
), /* 0x601E disabled */
75 PPCcall(dis
), /* 0x601F disabled */