mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
Tests+Userland: Implement AARCH64 support for some inline assembly blobs
This commit is contained in:
parent
dadf656dc9
commit
808c43312d
4 changed files with 25 additions and 0 deletions
|
@ -62,9 +62,14 @@ void _entry(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
|
||||
}
|
||||
|
||||
void _entry(int argc, char** argv, char** envp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue