]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/commpage/commpage.h
xnu-3789.60.24.tar.gz
[apple/xnu.git] / osfmk / i386 / commpage / commpage.h
index 45c001b414fdf8ec5b11aac95fb4d31e51f38569..ac600307e3ec40cc49b056980a4a4b35120dd838 100644 (file)
@@ -106,6 +106,14 @@ COMMPAGE_DESCRIPTOR_NAME(label) ## :                               ;\
 
 #define UNIQUEID(name) L ## name
 
+/* COMMPAGE_JMP(target,from,start)
+ *
+ * This macro perform a jump to another commpage routine.
+ * Used to return from the PFZ by jumping via a return outside the PFZ.
+ */
+#define COMMPAGE_JMP(target,from,start)                                \
+       jmp      L ## start - from + target
+
 #else /* __ASSEMBLER__ */
 
 /* Each potential commpage routine is described by one of these.