Skip to content

Commit b21c88d

Browse files
committed
Correct offset to SP register on ARM EAPI.
1 parent c95ebf2 commit b21c88d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lcoco.c

+3
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ static inline void coco_switch(coco_ctx from, coco_ctx to)
459459
#elif defined(__arm__) || defined(__ARM__)
460460

461461
#if __GLIBC__ == 2 || defined(__UCLIBC__) /* arm-linux-glibc2 */
462+
#if defined(__ARM_EABI__)
463+
#define __JMP_BUF_SP 8
464+
#endif
462465
#ifndef __JMP_BUF_SP
463466
#define __JMP_BUF_SP ((sizeof(__jmp_buf)/sizeof(int))-2)
464467
#endif

0 commit comments

Comments
 (0)