From 8be7b6aeb30accce1bf99b958f5c815b8eb7038c Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Tue, 9 Dec 2014 16:34:46 -0700 Subject: [PATCH] correct THREAD_STATE_THREAD register for arm64 on darwin --- src/avian/arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avian/arm.h b/src/avian/arm.h index 8696507735..c0309486a3 100644 --- a/src/avian/arm.h +++ b/src/avian/arm.h @@ -35,7 +35,7 @@ #define THREAD_STATE_IP(state) ((state).FIELD(pc)) #define THREAD_STATE_STACK(state) ((state).FIELD(sp)) #if (defined __APPLE__) && (defined ARCH_arm64) -#define THREAD_STATE_THREAD(state) ((state).FIELD(x[8])) +#define THREAD_STATE_THREAD(state) ((state).FIELD(x[19])) #else #define THREAD_STATE_THREAD(state) ((state).FIELD(r[8])) #endif