diff --git a/coroutine/arm32/Context.S b/coroutine/arm32/Context.S index c2b93d0a34..b2bb2ae303 100644 --- a/coroutine/arm32/Context.S +++ b/coroutine/arm32/Context.S @@ -9,6 +9,10 @@ .globl coroutine_transfer coroutine_transfer: - stmia r1!, {r4-r11,sp,lr} - ldmia r0!, {r4-r11,sp,pc} + stmia r0!, {r4-r11,sp,lr} + ldmia r1!, {r4-r11,sp,pc} bx lr + +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif