mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 19:59:03 +00:00
LibC: Set up a dummy first stack frame in _start
This ensures that we stop walking the stack at `_entry` and don't crash/panic when computing backtraces.
This commit is contained in:
parent
e77ce26ff1
commit
fb11645a9b
Notes:
sideshowbarker
2024-07-17 07:14:09 +09:00
Author: https://github.com/BertalanD
Commit: fb11645a9b
Pull-request: https://github.com/SerenityOS/serenity/pull/19153
Reviewed-by: https://github.com/nico ✅
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ NAKED void _start(int, char**, char**)
|
|||
{
|
||||
# if ARCH(AARCH64)
|
||||
asm(
|
||||
"mov x29, 0\n"
|
||||
"mov x30, 0\n"
|
||||
"bl _entry\n");
|
||||
# else
|
||||
asm(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue