diff --git a/py/nlrx64.S b/py/nlrx64.S index 43298eba9d..91889c93f9 100644 --- a/py/nlrx64.S +++ b/py/nlrx64.S @@ -35,7 +35,11 @@ // the offset of nlr_top within mp_state_ctx_t #define NLR_TOP_OFFSET (2 * 8) +#if defined(__APPLE__) && defined(__MACH__) +#define NLR_TOP (_mp_state_ctx + NLR_TOP_OFFSET) +#else #define NLR_TOP (mp_state_ctx + NLR_TOP_OFFSET) +#endif .file "nlr.s" .text