mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +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
|
@ -11,9 +11,17 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
asm("haxcode:\n"
|
||||
"1: jmp 1b\n"
|
||||
"haxcode_end:\n");
|
||||
#elif ARCH(AARCH64)
|
||||
asm("haxcode:\n"
|
||||
"1: b 1b\n"
|
||||
"haxcode_end:\n");
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
||||
extern "C" void haxcode();
|
||||
extern "C" void haxcode_end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue