diff options
Diffstat (limited to 'i386/include/mach/i386/vm_types.h')
-rw-r--r-- | i386/include/mach/i386/vm_types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/i386/include/mach/i386/vm_types.h b/i386/include/mach/i386/vm_types.h index 4e259f9b..29b9e1e6 100644 --- a/i386/include/mach/i386/vm_types.h +++ b/i386/include/mach/i386/vm_types.h @@ -48,6 +48,9 @@ * a port in user space as an integer and * in kernel space as a pointer. */ +#ifdef __x86_64__ +// unsigned long ? +#endif typedef unsigned int natural_t; /* @@ -69,18 +72,27 @@ typedef vm_offset_t * vm_offset_array_t; /* * A type for physical addresses. */ +#ifdef MACH_KERNEL #ifdef PAE typedef unsigned long long phys_addr_t; #else /* PAE */ typedef unsigned long phys_addr_t; #endif /* PAE */ +#else +typedef unsigned long long phys_addr_t; +#endif +typedef unsigned long long rpc_phys_addr_t; /* * A vm_size_t is the proper type for e.g. * expressing the difference between two * vm_offset_t entities. */ +#ifdef __x86_64__ +typedef unsigned long vm_size_t; +#else typedef natural_t vm_size_t; +#endif #endif /* __ASSEMBLER__ */ |