]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/vm_types.h
855c1da16c2ecb2161880283f4c579e93efb8bd2
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:19 stephen
35 * nmklinux_1.0b3_shared into pmk1.1
36 * [1996/12/09 10:51:34 stephen]
38 * Revision 1.1.6.1 1996/04/11 11:20:26 emcmanus
39 * Copied from mainline.ppc.
40 * [1996/04/10 16:57:16 emcmanus]
42 * Revision 1.1.4.1 1995/11/23 17:37:13 stephen
43 * first powerpc checkin to mainline.ppc
44 * [1995/11/23 16:45:52 stephen]
46 * Revision 1.1.2.1 1995/08/25 06:50:05 stephen
47 * Initial checkin of files for PowerPC port
48 * [1995/08/23 15:05:11 stephen]
50 * Revision 1.2.8.2 1995/01/06 19:50:48 devrcs
51 * mk6 CR668 - 1.3b26 merge
53 * [1994/10/14 03:42:42 dwm]
55 * Revision 1.2.8.1 1994/09/23 02:38:01 ezf
56 * change marker to not FREE
57 * [1994/09/22 21:40:30 ezf]
59 * Revision 1.2.2.2 1993/06/09 02:41:01 gm
60 * Added to OSF/1 R1.3 from NMK15.0.
61 * [1993/06/02 21:16:38 jeffc]
63 * Revision 1.2 1993/04/19 16:34:37 devrcs
64 * ansi C conformance changes
65 * [1993/02/02 18:56:34 david]
67 * Revision 1.1 1992/09/30 02:30:57 robert
74 * Revision 2.4 91/05/14 16:53:00 mrt
75 * Correcting copyright
77 * Revision 2.3 91/02/05 17:32:34 mrt
78 * Changed to new Mach copyright
79 * [91/02/01 17:10:49 mrt]
81 * Revision 2.2 90/05/03 15:48:32 dbg
84 * Revision 1.3 89/03/09 20:20:12 rpd
87 * Revision 1.2 89/02/26 13:01:20 gm0w
88 * Changes for cleanup.
90 * 31-Dec-88 Robert Baron (rvb) at Carnegie-Mellon University
91 * Derived from MACH2.0 vax release.
93 * 23-Apr-87 Michael Young (mwyoung) at Carnegie-Mellon University
94 * Changed things to "unsigned int" to appease the user community :-).
99 * Mach Operating System
100 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
101 * All Rights Reserved.
103 * Permission to use, copy, modify and distribute this software and its
104 * documentation is hereby granted, provided that both the copyright
105 * notice and this permission notice appear in all copies of the
106 * software, derivative works or modified versions, and any portions
107 * thereof, and that both notices appear in supporting documentation.
109 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
110 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
111 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
113 * Carnegie Mellon requests users of this software to return to
115 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
116 * School of Computer Science
117 * Carnegie Mellon University
118 * Pittsburgh PA 15213-3890
120 * any improvements or extensions that they make and grant Carnegie Mellon
121 * the rights to redistribute these changes.
128 * Author: Avadis Tevanian, Jr.
131 * Header file for VM data types. I386 version.
134 #ifndef _MACH_PPC_VM_TYPES_H_
135 #define _MACH_PPC_VM_TYPES_H_
140 * A natural_t is the type for the native
141 * integer type, e.g. 32 or 64 or.. whatever
142 * register size the machine has. Unsigned, it is
143 * used for entities that might be either
144 * unsigned integers or pointers, and for
145 * type-casting between the two.
146 * For instance, the IPC system represents
147 * a port in user space as an integer and
148 * in kernel space as a pointer.
150 typedef unsigned int natural_t
;
153 * An integer_t is the signed counterpart
154 * of the natural_t type. Both types are
155 * only supposed to be used to define
156 * other types in a machine-independent
159 typedef int integer_t
;
161 #ifdef MACH_KERNEL_PRIVATE
163 * An int32 is an integer that is at least 32 bits wide
166 typedef unsigned int uint32
;
170 * A vm_offset_t is a type-neutral pointer,
171 * e.g. an offset into a virtual memory space.
173 typedef natural_t vm_offset_t
;
176 * A vm_size_t is the proper type for e.g.
177 * expressing the difference between two
178 * vm_offset_t entities.
180 typedef natural_t vm_size_t
;
181 typedef unsigned long long vm_double_size_t
;
184 * space_t is used in the pmap system
186 typedef unsigned int space_t
;
188 #endif /* ndef ASSEMBLER */
191 * If composing messages by hand (please dont)
194 #define MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32
196 #endif /* _MACH_PPC_VM_TYPES_H_ */