X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/21362eb3e66fd2c787aee132bce100a44d71a99c..3e170ce000f1506b7b5d2c5c7faec85ceabb573d:/osfmk/mach/vm_prot.h

diff --git a/osfmk/mach/vm_prot.h b/osfmk/mach/vm_prot.h
index 2801dafd7..039390c26 100644
--- a/osfmk/mach/vm_prot.h
+++ b/osfmk/mach/vm_prot.h
@@ -129,4 +129,26 @@ typedef int		vm_prot_t;
 
 #define VM_PROT_WANTS_COPY	((vm_prot_t) 0x10)
 
+#ifdef PRIVATE
+/*
+ *	The caller wants this memory region treated as if it had a valid
+ *	code signature.
+ */
+
+#define VM_PROT_TRUSTED		((vm_prot_t) 0x20)
+#endif /* PRIVATE */
+
+/*
+ * 	Another invalid protection value.
+ *	Indicates that the other protection bits are to be applied as a mask
+ *	against the actual protection bits of the map entry.
+ */
+#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_ */