1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +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:
Daniel Bertalan 2023-05-30 15:22:59 +02:00 committed by Andreas Kling
parent e77ce26ff1
commit fb11645a9b

View file

@ -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(