]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/vm_types.h
157684e16c1bdd73ac31d3a75609e204f53b4d11
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_PPC_VM_TYPES_H_
62 #define _MACH_PPC_VM_TYPES_H_
67 * A natural_t is the type for the native
68 * integer type, e.g. 32 or 64 or.. whatever
69 * register size the machine has. Unsigned, it is
70 * used for entities that might be either
71 * unsigned integers or pointers, and for
72 * type-casting between the two.
73 * For instance, the IPC system represents
74 * a port in user space as an integer and
75 * in kernel space as a pointer.
77 typedef unsigned int natural_t
;
80 * An integer_t is the signed counterpart
81 * of the natural_t type. Both types are
82 * only supposed to be used to define
83 * other types in a machine-independent
86 typedef int integer_t
;
89 * A vm_offset_t is a type-neutral pointer,
90 * e.g. an offset into a virtual memory space.
92 typedef natural_t vm_offset_t
;
95 * A vm_size_t is the proper type for e.g.
96 * expressing the difference between two
97 * vm_offset_t entities.
99 typedef natural_t vm_size_t
;
102 * space_t is used in the pmap system
104 typedef unsigned int space_t
;
106 #endif /* ndef ASSEMBLER */
109 * If composing messages by hand (please dont)
112 #define MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32
114 #endif /* _MACH_PPC_VM_TYPES_H_ */