|
|
1.1 root 1: /*
2: * Machine abstraction functions
3: * Copyright (C) 2008 Free Software Foundation, Inc.
4: *
5: * This program is free software; you can redistribute it and/or modify
6: * it under the terms of the GNU General Public License as published by
7: * the Free Software Foundation; either version 2, or (at your option)
8: * any later version.
9: *
10: * This program is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU General Public License for more details.
14: *
15: * You should have received a copy of the GNU General Public License
16: * along with this program; if not, write to the Free Software
17: * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18: *
19: * Author: Barry deFreese.
20: */
21: /*
22: * Machine abstraction functions.
23: *
24: */
25:
26: #ifndef _MACHINE_H_
27: #define _MACHINE_H_
28:
29: #include <mach/std_types.h>
30:
31: /*
32: * cpu_up:
33: *
34: * Flag specified cpu as up and running. Called when a processor comes
35: * online.
36: */
37: extern void cpu_up (int);
38:
39: /*
40: * processor_assign() changes the processor set that a processor is
41: * assigned to. Any previous assignment in progress is overridden.
42: * Synchronizes with assignment completion if wait is TRUE.
43: */
44: extern kern_return_t processor_assign (processor_t, processor_set_t, boolean_t);
45:
46: /*
47: * processor_shutdown() queues a processor up for shutdown.
48: * Any assignment in progress is overriden. It does not synchronize
49: * with the shutdown (can be called from interrupt level).
50: */
51: extern kern_return_t processor_shutdown (processor_t);
52:
53: /*
54: * action_thread() shuts down processors or changes their assignment.
55: */
1.1.1.2 ! root 56: extern void action_thread_continue (void) __attribute__((noreturn));
1.1 root 57:
58: #endif /* _MACHINE_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.