2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
28 * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez
29 * Import of Mac OS X kernel (~semeria)
31 * Revision 1.1.1.1 1998/03/07 02:25:46 wsanchez
32 * Import of OSF Mach kernel (~mburg)
34 * Revision 1.1.8.1 1996/12/09 16:50:08 stephen
35 * nmklinux_1.0b3_shared into pmk1.1
36 * [1996/12/09 10:51:04 stephen]
38 * Revision 1.1.6.1 1996/04/11 11:19:58 emcmanus
39 * Copied from mainline.ppc.
40 * [1996/04/10 16:56:50 emcmanus]
42 * mk6 CR668 - 1.3b26 merge
44 * [1994/11/02 18:18:29 dwm]
46 * Revision 1.1.4.1 1995/11/23 17:36:53 stephen
47 * first powerpc checkin to mainline.ppc
48 * [1995/11/23 16:45:00 stephen]
50 * Revision 1.1.2.1 1995/08/25 06:49:44 stephen
51 * Initial checkin of files for PowerPC port
52 * [1995/08/23 15:04:13 stephen]
54 * Revision 1.1.2.1 1994/05/06 18:54:50 tmt
55 * New Mig definition file to describe required machine types.
56 * [1994/05/05 21:08:57 tmt]
61 * Header file for basic, machine-dependent data types. i386 version.
64 #ifndef _MACHINE_VM_TYPES_DEFS_
65 #define _MACHINE_VM_TYPES_DEFS_ 1
68 * A natural_t is the type for the native
69 * integer type, e.g. 32 or 64 or.. whatever
70 * register size the machine has. Unsigned, it is
71 * used for entities that might be either
72 * unsigned integers or pointers, and for
73 * type-casting between the two.
74 * For instance, the IPC system represents
75 * a port in user space as an integer and
76 * in kernel space as a pointer.
78 type natural_t = unsigned32;
81 * An integer_t is the signed counterpart
82 * of the natural_t type. Both types are
83 * only supposed to be used to define
84 * other types in a machine-independent
87 type integer_t = int32;
92 * For the old IPC interface
94 #define MSG_TYPE_PORT_NAME MACH_MSG_TYPE_INTEGER_32
96 #endif /* MACH_IPC_COMPAT */
99 #endif /* _MACHINE_VM_TYPES_DEFS_ */