|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 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. ! 11: * ! 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 ! 18: * under the License. ! 19: * ! 20: * @APPLE_LICENSE_HEADER_END@ ! 21: */ ! 22: /* ! 23: * @OSF_COPYRIGHT@ ! 24: */ ! 25: ! 26: #ifndef _KERN_MACHINE_H_ ! 27: #define _KERN_MACHINE_H_ ! 28: ! 29: #include <cpus.h> ! 30: #include <mach/kern_return.h> ! 31: #include <mach/processor_info.h> ! 32: #include <kern/kern_types.h> ! 33: ! 34: /* ! 35: * Machine support declarations. ! 36: */ ! 37: ! 38: extern void processor_action(void); ! 39: ! 40: extern void cpu_down( ! 41: int cpu); ! 42: ! 43: extern void cpu_up( ! 44: int cpu); ! 45: ! 46: /* ! 47: * Must be implemented in machine dependent code. ! 48: */ ! 49: ! 50: #if NCPUS > 1 ! 51: /* Initialize machine dependent ast code */ ! 52: extern void init_ast_check( ! 53: processor_t processor); ! 54: ! 55: /* Cause check for ast */ ! 56: extern void cause_ast_check( ! 57: processor_t processor); ! 58: ! 59: extern kern_return_t cpu_start( ! 60: int slot_num); ! 61: ! 62: extern kern_return_t cpu_control( ! 63: int slot_num, ! 64: processor_info_t info, ! 65: unsigned int count); ! 66: ! 67: extern void switch_to_shutdown_context( ! 68: thread_t thread, ! 69: void (*doshutdown)(processor_t), ! 70: processor_t processor); ! 71: ! 72: #endif /* NCPUS > 1 */ ! 73: ! 74: #endif /* _KERN_MACHINE_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.