Skip to content

Commit 3211002

Browse files
CuriousTommybugaevc
andcommitted
[mldr] Bug Fix
Co-authored-by: Sergey Bugaev <bugaevc@gmail.com>
1 parent e4a407b commit 3211002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/startup/mldr/elfcalls/threads.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static void* darling_thread_entry(void* p)
329329
// Zero out the frame base register.
330330
"mov fp, #0\n"
331331
// Switch to the new stack.
332-
"mov %[stack_ptr], sp\n"
332+
"mov sp, %[stack_ptr]\n"
333333
// Push a fake return address.
334334
"mov lr, #0\n"
335335
// Jump to the entry point.

0 commit comments

Comments
 (0)