]> git.saurik.com Git - apple/xnu.git/blame - osfmk/ppc/PPCcalls.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / osfmk / ppc / PPCcalls.h
CommitLineData
1c79356b 1/*
3a60a9f5 2 * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
1c79356b 3 *
8ad349bb 4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
1c79356b 5 *
8ad349bb
A
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
1c79356b
A
29 */
30
31/*
32 * To add a new entry:
33 * Add an "PPCTRAP(routine)" to the table below
34 *
35 * Add trap definition to mach/ppc/syscall_sw.h and
36 * recompile user library.
37 *
38 * Note:
39 * The maximum number of calls is 0x1000 (4096 for the hexually challanged)
40 *
41 */
42
43typedef int (*PPCcallEnt)(struct savearea *save);
44
45#define PPCcall(rout) rout
46#define dis (PPCcallEnt)0
47
48PPCcallEnt PPCcalls[] = {
49
50 PPCcall(diagCall), /* 0x6000 Call diagnostics routines */
51 PPCcall(vmm_get_version), /* 0x6001 Get Virtual Machine Monitor version */
52 PPCcall(vmm_get_features), /* 0x6002 Get Virtual Machine Monitor supported features */
53 PPCcall(vmm_init_context), /* 0x6003 Initialize a VMM context */
54 PPCcall(vmm_dispatch), /* 0x6004 Dispatch a Virtual Machine Monitor call */
55 PPCcall(bb_enable_bluebox), /* 0x6005 Enable this thread for use in the blue box virtual machine */
56 PPCcall(bb_disable_bluebox), /* 0x6006 Disable this thread for use in the blue box virtual machine */
57 PPCcall(bb_settaskenv), /* 0x6007 Set the BlueBox per thread task environment data */
0b4e3aa0 58 PPCcall(vmm_stop_vm), /* 0x6008 Stop a running VM */
1c79356b 59
5d5c5d0d 60 PPCcall(dis), /* 0x6009 disabled */
9bccf70c 61
55e303ae
A
62 PPCcall(ppcNull), /* 0x600A Null PPC syscall */
63 PPCcall(perfmon_control), /* 0x600B performance monitor */
64 PPCcall(ppcNullinst), /* 0x600C Instrumented Null PPC syscall */
3a60a9f5 65 PPCcall(pmsCntrl), /* 0x600D Power Management Stepper */
1c79356b
A
66 PPCcall(dis), /* 0x600E disabled */
67 PPCcall(dis), /* 0x600F disabled */
55e303ae
A
68 PPCcall(dis), /* 0x6010 disabled */
69 PPCcall(dis), /* 0x6011 disabled */
70 PPCcall(dis), /* 0x6012 disabled */
71 PPCcall(dis), /* 0x6013 disabled */
72 PPCcall(dis), /* 0x6014 disabled */
73 PPCcall(dis), /* 0x6015 disabled */
74 PPCcall(dis), /* 0x6016 disabled */
75 PPCcall(dis), /* 0x6017 disabled */
76 PPCcall(dis), /* 0x6018 disabled */
77 PPCcall(dis), /* 0x6019 disabled */
78 PPCcall(dis), /* 0x601A disabled */
79 PPCcall(dis), /* 0x601B disabled */
80 PPCcall(dis), /* 0x601C disabled */
81 PPCcall(dis), /* 0x601D disabled */
82 PPCcall(dis), /* 0x601E disabled */
83 PPCcall(dis), /* 0x601F disabled */
1c79356b
A
84};
85
86#undef dis