]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/vm_prot.h
xnu-3247.10.11.tar.gz
[apple/xnu.git] / osfmk / mach / vm_prot.h
index ae2d67584131ac1c6b511e46ec17cb332afd5cea..039390c26e8a1f5673b16445fe3146ab8910d049 100644 (file)
@@ -145,4 +145,10 @@ typedef int                vm_prot_t;
  */
 #define VM_PROT_IS_MASK                ((vm_prot_t) 0x40)
 
+
+#define VM_PROT_MEMORY_TAG_MASK                0xFF000000
+#define VM_PROT_MEMORY_TAG_SHIFT       24
+#define VM_PROT_MEMORY_TAG(x)          (((x) >> VM_PROT_MEMORY_TAG_SHIFT) & 0xFF)
+#define VM_PROT_MEMORY_TAG_MAKE(x)     (((x) & 0xFF) << VM_PROT_MEMORY_TAG_SHIFT)
+
 #endif /* _MACH_VM_PROT_H_ */