mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +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
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ NAKED void _start(int, char**, char**)
|
||||||
{
|
{
|
||||||
# if ARCH(AARCH64)
|
# if ARCH(AARCH64)
|
||||||
asm(
|
asm(
|
||||||
|
"mov x29, 0\n"
|
||||||
|
"mov x30, 0\n"
|
||||||
"bl _entry\n");
|
"bl _entry\n");
|
||||||
# else
|
# else
|
||||||
asm(
|
asm(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue