From a9a35f9d3b19724640fcb0b0cec057f95c8c6328 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 19 Sep 2024 20:06:25 -0600 Subject: fixes --- coroutine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coroutine.c') 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" /* ] */ -- cgit v1.2.3-2-g168b