From dbe232e24e56cb200b8e5b78062c8a2784a792e9 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Tue, 25 Jun 2019 17:04:04 +1200 Subject: [PATCH] Order of arguments might be incorrect in arm32 coroutine implementation. --- coroutine/arm32/Context.S | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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