]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/arm64/asm.h
xnu-4903.270.47.tar.gz
[apple/xnu.git] / osfmk / arm64 / asm.h
index f756f22aef629abc0ba16b73b1d41f3a3247a1c4..fb2c1ea8a5520a1807064230949461e82ee0c43a 100644 (file)
        movk $0, #((($1) >> 00) & 0x000000000000FFFF), lsl #00
 .endmacro
 
+.macro ARM64_STACK_PROLOG
+#if __has_feature(ptrauth_returns)
+       pacibsp
+#endif
+.endmacro
+
+.macro ARM64_STACK_EPILOG
+#if __has_feature(ptrauth_returns)
+       retab
+#else
+       ret
+#endif
+.endmacro
+
 #define PUSH_FRAME                     \
        stp fp, lr, [sp, #-16]!         %% \
        mov fp, sp                      %%