diff --git a/src/rt/arch/x86_64/record_sp.S b/src/rt/arch/x86_64/record_sp.S index 3df6ee1c5da..e8284c5fac9 100644 --- a/src/rt/arch/x86_64/record_sp.S +++ b/src/rt/arch/x86_64/record_sp.S @@ -13,6 +13,13 @@ RECORD_SP: movq %rdi, %fs:112 ret #else +#if defined(__APPLE__) +RECORD_SP: + movq $0x60+90*8, %rsi + movq %rdi, %gs:(%rsi) + ret +#else RECORD_SP: ret -#endif \ No newline at end of file +#endif +#endif