diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-19 20:06:25 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-19 20:09:20 -0600 |
commit | a9a35f9d3b19724640fcb0b0cec057f95c8c6328 (patch) | |
tree | b59f3e151aaadcd36647278cd782310553b0b078 /coroutine.c | |
parent | 75fcb1ef5db5a2d6daaf02a0a02de037f5eaedff (diff) |
fixes
Diffstat (limited to 'coroutine.c')
-rw-r--r-- | coroutine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coroutine.c b/coroutine.c index 50e4135..01418bd 100644 --- a/coroutine.c +++ b/coroutine.c @@ -170,7 +170,7 @@ static void call_with_stack(void *stack, cr_fn_t fn, void *args) { asm volatile ("mov r0, sp\n\t" /* [saved_sp = sp */ "str r0, %0\n\t" /* ] */ "mov sp, %1\n\t" /* [sp = stack] */ - "mov r0, %1\n\t" /* [arg0 = args] */ + "mov r0, %3\n\t" /* [arg0 = args] */ "blx %2\n\t" /* [fn()] */ "ldr r0, %0\n\t" /* [sp = staved_sp */ "mov sp, r0" /* ] */ |