Skip to content

Commit

Permalink
[mldr] Bug Fix
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Bugaev <[email protected]>
  • Loading branch information
CuriousTommy and bugaevc committed Jan 22, 2024
1 parent e4a407b commit 3211002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/startup/mldr/elfcalls/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3211002

Please sign in to comment.