Tests+Userland: Implement AARCH64 support for some inline assembly blobs

This commit is contained in:
Gunnar Beutner 2022-10-12 22:18:24 +02:00 committed by Linus Groh
commit 808c43312d
Notes: sideshowbarker 2024-07-17 10:54:57 +09:00
4 changed files with 25 additions and 0 deletions

View file

@ -25,9 +25,14 @@ void _start(int, char**, char**) __attribute__((used));
NAKED void _start(int, char**, char**)
{
# ifdef AK_ARCH_AARCH64
asm(
"bl _entry\n");
# else
asm(
"push $0\n"
"jmp _entry@plt\n");
# endif
}
int _entry(int argc, char** argv, char** env)