]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/i386/vm_types.h
0ad257fcbb9529acb2e93543321758b6dce14045
2 * Copyright (c) 2002,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@
26 * Mach Operating System
27 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
28 * All Rights Reserved.
30 * Permission to use, copy, modify and distribute this software and its
31 * documentation is hereby granted, provided that both the copyright
32 * notice and this permission notice appear in all copies of the
33 * software, derivative works or modified versions, and any portions
34 * thereof, and that both notices appear in supporting documentation.
36 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
40 * Carnegie Mellon requests users of this software to return to
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
55 * Author: Avadis Tevanian, Jr.
58 * Header file for VM data types. I386 version.
61 #ifndef _MACH_I386_VM_TYPES_H_
62 #define _MACH_I386_VM_TYPES_H_
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 typedef unsigned int natural_t
;
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 typedef int integer_t
;
90 * A vm_offset_t is a type-neutral pointer,
91 * e.g. an offset into a virtual memory space.
93 typedef natural_t vm_offset_t
;
96 * A vm_size_t is the proper type for e.g.
97 * expressing the difference between two
98 * vm_offset_t entities.
100 typedef natural_t vm_size_t
;
102 #endif /* ASSEMBLER */
105 * If composing messages by hand (please dont)
108 #define MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32
110 #endif /* _MACH_I386_VM_TYPES_H_ */