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