|
|
1.1 root 1: /*
2: * Mach Operating System
3: * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
4: * All Rights Reserved.
5: *
6: * Permission to use, copy, modify and distribute this software and its
7: * documentation is hereby granted, provided that both the copyright
8: * notice and this permission notice appear in all copies of the
9: * software, derivative works or modified versions, and any portions
10: * thereof, and that both notices appear in supporting documentation.
11: *
12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15: *
16: * Carnegie Mellon requests users of this software to return to
17: *
18: * Software Distribution Coordinator or [email protected]
19: * School of Computer Science
20: * Carnegie Mellon University
21: * Pittsburgh PA 15213-3890
22: *
23: * any improvements or extensions that they make and grant Carnegie Mellon
24: * the rights to redistribute these changes.
25: */
26: /*
27: * File: mach/task_special_ports.h
28: *
29: * Defines codes for special_purpose task ports. These are NOT
30: * port identifiers - they are only used for the task_get_special_port
31: * and task_set_special_port routines.
32: *
33: */
34:
35: #ifndef _MACH_TASK_SPECIAL_PORTS_H_
36: #define _MACH_TASK_SPECIAL_PORTS_H_
37:
38: #define TASK_KERNEL_PORT 1 /* Represents task to the outside
39: world.*/
40: #define TASK_EXCEPTION_PORT 3 /* Exception messages for task are
41: sent to this port. */
42: #define TASK_BOOTSTRAP_PORT 4 /* Bootstrap environment for task. */
43:
44: /*
45: * Definitions for ease of use
46: */
47:
48: #define task_get_kernel_port(task, port) \
49: (task_get_special_port((task), TASK_KERNEL_PORT, (port)))
50:
51: #define task_set_kernel_port(task, port) \
52: (task_set_special_port((task), TASK_KERNEL_PORT, (port)))
53:
54: #define task_get_exception_port(task, port) \
55: (task_get_special_port((task), TASK_EXCEPTION_PORT, (port)))
56:
57: #define task_set_exception_port(task, port) \
58: (task_set_special_port((task), TASK_EXCEPTION_PORT, (port)))
59:
60: #define task_get_bootstrap_port(task, port) \
61: (task_get_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
62:
63: #define task_set_bootstrap_port(task, port) \
64: (task_set_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
65:
66: #endif /* _MACH_TASK_SPECIAL_PORTS_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.