]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/arm64/proc_reg.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / arm64 / proc_reg.h
index 307027f7c455f8b704e12fa0d3696169e5898c55..545142ba414bc24566d703351de6c1d61210a251 100644 (file)
 #define ARM_PTE_NX                 0x0040000000000000ULL /* value for no execute bit */
 #define ARM_PTE_NXMASK             0x0040000000000000ULL /* no execute mask */
 
+#define ARM_PTE_XMASK              (ARM_PTE_PNXMASK | ARM_PTE_NXMASK)
+
 #define ARM_PTE_WIRED              0x0400000000000000ULL /* value for software wired bit */
 #define ARM_PTE_WIRED_MASK         0x0400000000000000ULL /* software wired mask */
 
@@ -2057,6 +2059,19 @@ b.ne 1f
 1:
 .endmacro
 
+/*
+ * Wedges CPUs with a specified core that are below a specified revision.  This
+ * macro is intended for CPUs that have been deprecated in iBoot and may have
+ * incorrect behavior if they continue running xnu.
+ */
+.macro DEPRECATE_COREEQ_REVLO   core, rev, midr_el1, scratch
+EXEC_COREEQ_REVLO \core, \rev, \midr_el1, \scratch
+/* BEGIN IGNORE CODESTYLE */
+b .
+/* END IGNORE CODESTYLE */
+EXEC_END
+.endmacro
+
 /*
  * Sets bits in an SPR register.
  * arg0: Name of the register to be accessed.