|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /* ! 26: * Mach Operating System ! 27: * Copyright (c) 1990 Carnegie-Mellon University ! 28: * Copyright (c) 1989 Carnegie-Mellon University ! 29: * Copyright (c) 1988 Carnegie-Mellon University ! 30: * Copyright (c) 1987 Carnegie-Mellon University ! 31: * All rights reserved. The CMU software License Agreement specifies ! 32: * the terms and conditions for use and redistribution. ! 33: */ ! 34: /* ! 35: * HISTORY ! 36: */ ! 37: ! 38: #ifdef KERNEL_PRIVATE ! 39: ! 40: #ifndef _MACH_SYSCALL_SW_H_ ! 41: #define _MACH_SYSCALL_SW_H_ ! 42: ! 43: /* ! 44: * The machine-dependent "syscall_sw.h" file should ! 45: * define a macro for ! 46: * kernel_trap(trap_name, trap_number, arg_count) ! 47: * which will expand into assembly code for the ! 48: * trap. ! 49: * ! 50: * N.B.: When adding calls, do not put spaces in the macros. ! 51: */ ! 52: ! 53: #include <mach/machine/syscall_sw.h> ! 54: ! 55: /* ! 56: * These trap numbers should be taken from the ! 57: * table in <kern/syscall_sw.c>. ! 58: */ ! 59: ! 60: kernel_trap(task_self,-10,0) ! 61: kernel_trap(thread_reply,-11,0) ! 62: kernel_trap(task_notify,-12,0) ! 63: kernel_trap(thread_self,-13,0) ! 64: ! 65: kernel_trap(msg_send_trap,-20,4) ! 66: kernel_trap(msg_receive_trap,-21,5) ! 67: kernel_trap(msg_rpc_trap,-22,6) ! 68: kernel_trap(mach_msg_simple_trap,-24,5) ! 69: kernel_trap(mach_msg_trap,-25,7) ! 70: kernel_trap(mach_reply_port,-26,0) ! 71: kernel_trap(mach_thread_self,-27,0) ! 72: kernel_trap(mach_task_self,-28,0) ! 73: kernel_trap(mach_host_self,-29,0) ! 74: kernel_trap(mach_msg_overwrite_trap,-32,9) ! 75: ! 76: kernel_trap(task_by_pid,33,1) ! 77: ! 78: kernel_trap(_lookupd_port,-35,1) ! 79: kernel_trap(_lookupd_port1,-36,1) ! 80: ! 81: kernel_trap(init_process,-41,0) ! 82: ! 83: kernel_trap(map_fd,-43,5) ! 84: ! 85: kernel_trap(mach_swapon,-45,4) ! 86: ! 87: kernel_trap(kern_timestamp, -51,1) ! 88: ! 89: kernel_trap(host_self,-55,1) ! 90: kernel_trap(host_priv_self,-56,1) ! 91: ! 92: kernel_trap(swtch_pri,-59,1) ! 93: kernel_trap(swtch,-60,0) ! 94: kernel_trap(thread_switch,-61,3) ! 95: ! 96: kernel_trap(_event_port_by_tag,-68,1) ! 97: ! 98: kernel_trap(device_master_self,-69,1) ! 99: ! 100: #endif /* _MACH_SYSCALL_SW_H_ */ ! 101: ! 102: #endif /* KERNEL_PRIVATE */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.