]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/i386/machine_types.defs
7a4258c61ffafa185446bd31b8e17b3fc001c55c
[apple/xnu.git] / osfmk / mach / i386 / machine_types.defs
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 * HISTORY
27 *
28 * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez
29 * Import of Mac OS X kernel (~semeria)
30 *
31 * Revision 1.1.1.1 1998/03/07 02:25:47 wsanchez
32 * Import of OSF Mach kernel (~mburg)
33 *
34 * Revision 1.1.5.1 1995/01/06 19:50:37 devrcs
35 * mk6 CR668 - 1.3b26 merge
36 * new file for mk6
37 * [1994/11/02 18:18:29 dwm]
38 *
39 * Revision 1.1.2.1 1994/05/06 18:54:50 tmt
40 * New Mig definition file to describe required machine types.
41 * [1994/05/05 21:08:57 tmt]
42 *
43 * $EndLog$
44 */
45 /*
46 * Header file for basic, machine-dependent data types. i386 version.
47 */
48
49 #ifndef _MACHINE_VM_TYPES_DEFS_
50 #define _MACHINE_VM_TYPES_DEFS_ 1
51
52 /*
53 * A natural_t is the type for the native
54 * integer type, e.g. 32 or 64 or.. whatever
55 * register size the machine has. Unsigned, it is
56 * used for entities that might be either
57 * unsigned integers or pointers, and for
58 * type-casting between the two.
59 * For instance, the IPC system represents
60 * a port in user space as an integer and
61 * in kernel space as a pointer.
62 */
63 type natural_t = unsigned32;
64
65 /*
66 * An integer_t is the signed counterpart
67 * of the natural_t type. Both types are
68 * only supposed to be used to define
69 * other types in a machine-independent
70 * way.
71 */
72 type integer_t = int32;
73
74
75 #if MACH_IPC_COMPAT
76 /*
77 * For the old IPC interface
78 */
79 #define MSG_TYPE_PORT_NAME MACH_MSG_TYPE_INTEGER_32
80
81 #endif /* MACH_IPC_COMPAT */
82
83
84 #endif /* _MACHINE_VM_TYPES_DEFS_ */