#define SHARED_REGION_NESTING_MIN_PPC64 0x0000000010000000ULL
#define SHARED_REGION_NESTING_MAX_PPC64 0x0000000010000000ULL
-#define SHARED_REGION_BASE_ARM 0x1A000000ULL
-#define SHARED_REGION_SIZE_ARM 0x26000000ULL
-#define SHARED_REGION_NESTING_BASE_ARM 0x1A000000ULL
-#define SHARED_REGION_NESTING_SIZE_ARM 0x26000000ULL
+#define SHARED_REGION_BASE_ARM 0x40000000ULL
+#define SHARED_REGION_SIZE_ARM 0x40000000ULL
+#define SHARED_REGION_NESTING_BASE_ARM 0x40000000ULL
+#define SHARED_REGION_NESTING_SIZE_ARM 0x40000000ULL
#define SHARED_REGION_NESTING_MIN_ARM ?
#define SHARED_REGION_NESTING_MAX_ARM ?
+#define SHARED_REGION_BASE_ARM64_32 0x1A000000ULL
+#define SHARED_REGION_SIZE_ARM64_32 0x40000000ULL
+#define SHARED_REGION_NESTING_BASE_ARM64_32 0x1A000000ULL
+#define SHARED_REGION_NESTING_SIZE_ARM64_32 0x40000000ULL
+#define SHARED_REGION_NESTING_MIN_ARM64_32 ?
+#define SHARED_REGION_NESTING_MAX_ARM64_32 ?
#ifdef XNU_KERNEL_PRIVATE
/* ARM64_TODO: move to higher memory */
#define SHARED_REGION_NESTING_SIZE SHARED_REGION_NESTING_SIZE_ARM
#define SHARED_REGION_NESTING_MIN SHARED_REGION_NESTING_MIN_ARM
#define SHARED_REGION_NESTING_MAX SHARED_REGION_NESTING_MAX_ARM
+#elif defined(__arm64__) && !defined(__LP64__)
+#define SHARED_REGION_BASE SHARED_REGION_BASE_ARM64_32
+#define SHARED_REGION_SIZE SHARED_REGION_SIZE_ARM64_32
+#define SHARED_REGION_NESTING_BASE SHARED_REGION_NESTING_BASE_ARM64_32
+#define SHARED_REGION_NESTING_SIZE SHARED_REGION_NESTING_SIZE_ARM64_32
+#define SHARED_REGION_NESTING_MIN SHARED_REGION_NESTING_MIN_ARM64_32
+#define SHARED_REGION_NESTING_MAX SHARED_REGION_NESTING_MAX_ARM64_32
#elif defined(__arm64__) && defined(__LP64__)
#define SHARED_REGION_BASE SHARED_REGION_BASE_ARM64
#define SHARED_REGION_SIZE SHARED_REGION_SIZE_ARM64