We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da8b793 + e452373 commit aa43929Copy full SHA for aa43929
context/switch-arm64.c
@@ -105,7 +105,12 @@ FSIZE(switch_frame)
105
FNAME(create_frame)
106
" stp x1, x2, [x0, #-16]!\n"
107
" mov x16, lr\n" // Save LR so can use same STP slot
108
+#if defined(__aarch64__) && defined(__APPLE__) // darwin syntax
109
+" adrp lr, action_entry@PAGE\n"
110
+" add lr, lr, action_entry@PAGEOFF\n"
111
+#else
112
" ldr lr, =action_entry\n"
113
+#endif
114
" stp x19, x20, [x0, #-16]!\n"
115
" stp x21, x22, [x0, #-16]!\n"
116
" stp x23, x24, [x0, #-16]!\n"
0 commit comments