X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..13f56ec4e58bf8687e2a68032c093c0213dd519b:/libsyscall/mach/vm_map.defs diff --git a/libsyscall/mach/vm_map.defs b/libsyscall/mach/vm_map.defs index d0562dbed..c9aefb3c6 100644 --- a/libsyscall/mach/vm_map.defs +++ b/libsyscall/mach/vm_map.defs @@ -25,13 +25,20 @@ * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ -#if defined(__LP64__) +#if !LIBSYSCALL_INTERFACE && (defined(__LP64__) || defined(__arm__)) /* * In an LP64 environment, the traditional Mach VM interface names are * really just a second instance of the "wide" Mach VM interfaces. * + * For ARM, which doesn't support two address space sizes, use the "wide" + * interfaces as well, to reduce the amount of duplicate code compiled + * into the kernel. + * * The _MACH_VM_PUBLISH_AS_LOCAL_ flag triggers mach_vm.defs to export * the local names instead. + * + * LIBSYSCALL_INTERFACE indicates that we are building the + * machine-independent headers for Libsyscall */ #define _MACH_VM_PUBLISH_AS_LOCAL_ #include