]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/shared_memory_server.h
xnu-4570.41.2.tar.gz
[apple/xnu.git] / osfmk / mach / shared_memory_server.h
index d2ba99b4578c8560eb70dafc55dc1230e5572916..bd792319c1d38eda798395d0b74deb6de784d368 100644 (file)
@@ -45,6 +45,8 @@
 #ifndef _MACH_SHARED_MEMORY_SERVER_H_
 #define _MACH_SHARED_MEMORY_SERVER_H_
 
+#warning "<mach/shared_memory_server.h> is deprecated.  Please use <mach/shared_region.h> instead."
+
 #include <sys/cdefs.h>
 #include <mach/vm_prot.h>
 #include <mach/vm_types.h>
 #define VM_PROT_COW  0x8  /* must not interfere with normal prot assignments */
 #define VM_PROT_ZF  0x10  /* must not interfere with normal prot assignments */
 
+#ifdef __arm__
+#define GLOBAL_SHARED_TEXT_SEGMENT     0x30000000U
+#define GLOBAL_SHARED_DATA_SEGMENT     0x38000000U
+#define GLOBAL_SHARED_SEGMENT_MASK     0xF8000000U
+
+#define        SHARED_TEXT_REGION_SIZE         0x08000000
+#define        SHARED_DATA_REGION_SIZE         0x08000000
+#else
 #define GLOBAL_SHARED_TEXT_SEGMENT     0x90000000U
 #define GLOBAL_SHARED_DATA_SEGMENT     0xA0000000U
 #define GLOBAL_SHARED_SEGMENT_MASK     0xF0000000U
 
 #define        SHARED_TEXT_REGION_SIZE         0x10000000
 #define        SHARED_DATA_REGION_SIZE         0x10000000
+#endif
 
 #if !defined(__LP64__)
 
  *  i.e. if the size is 0x10000000 the object can be mapped at 
  *  0x20000000, or 0x30000000, but not 0x1000000
  */
+#ifdef __arm__
+#define        SHARED_TEXT_REGION_MASK         0x07FFFFFF
+#define        SHARED_DATA_REGION_MASK         0x07FFFFFF
+#else
 #define        SHARED_TEXT_REGION_MASK         0x0FFFFFFF
 #define        SHARED_DATA_REGION_MASK         0x0FFFFFFF
+#endif
 
 
 /* flags field aliases for copyin_shared_file and load_shared_file */