From 3211002acbdc4a921342ff4323d02e7f4d5b583d Mon Sep 17 00:00:00 2001 From: CuriousTommy Date: Fri, 12 Jan 2024 10:16:03 -0800 Subject: [PATCH] [mldr] Bug Fix Co-authored-by: Sergey Bugaev --- src/startup/mldr/elfcalls/threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/startup/mldr/elfcalls/threads.c b/src/startup/mldr/elfcalls/threads.c index e98cafb256..8b0071675b 100644 --- a/src/startup/mldr/elfcalls/threads.c +++ b/src/startup/mldr/elfcalls/threads.c @@ -329,7 +329,7 @@ static void* darling_thread_entry(void* p) // Zero out the frame base register. "mov fp, #0\n" // Switch to the new stack. - "mov %[stack_ptr], sp\n" + "mov sp, %[stack_ptr]\n" // Push a fake return address. "mov lr, #0\n" // Jump to the entry point.