|
|
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) 1989 Carnegie-Mellon University ! 28: * Copyright (c) 1988 Carnegie-Mellon University ! 29: * Copyright (c) 1987 Carnegie-Mellon University ! 30: * All rights reserved. The CMU software License Agreement specifies ! 31: * the terms and conditions for use and redistribution. ! 32: */ ! 33: /* ! 34: * HISTORY ! 35: * Revision 1.1.1.1 1997/09/30 02:44:35 wsanchez ! 36: * Import of kernel from umeshv/kernel ! 37: * ! 38: * Revision 2.3 89/03/09 20:14:51 rpd ! 39: * More cleanup. ! 40: * ! 41: * Revision 2.2 89/02/25 18:07:31 gm0w ! 42: * Kernel code cleanup. ! 43: * Put entire file under #indef KERNEL. ! 44: * [89/02/15 mrt] ! 45: * ! 46: * 9-Oct-87 Robert Baron (rvb) at Carnegie-Mellon University ! 47: * Define unix_reset for longjmp/setjmp reset. ! 48: * ! 49: * 21-Sep-87 Robert Baron (rvb) at Carnegie-Mellon University ! 50: * Created. ! 51: * ! 52: */ ! 53: ! 54: #ifndef _KERN_PARALLEL_H_ ! 55: #define _KERN_PARALLEL_H_ ! 56: ! 57: #ifdef KERNEL_BUILD ! 58: #import <cpus.h> ! 59: #else /* KERNEL_BUILD */ ! 60: #import <mach/features.h> ! 61: #endif /* KERNEL_BUILD */ ! 62: ! 63: #if NCPUS > 1 ! 64: ! 65: #define unix_master() _unix_master() ! 66: #define unix_release() _unix_release() ! 67: #define unix_reset() _unix_reset() ! 68: extern void _unix_master(), _unix_release(), _unix_reset(); ! 69: ! 70: #else /* NCPUS > 1 */ ! 71: ! 72: #define unix_master() ! 73: #define unix_release() ! 74: #define unix_reset() ! 75: ! 76: #endif /* NCPUS > 1 */ ! 77: ! 78: #endif /* _KERN_PARALLEL_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.