mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
Userland+Tests: Add initial riscv64 support
This commit is contained in:
parent
c6b2a07326
commit
6824d2a788
23 changed files with 262 additions and 34 deletions
|
@ -210,6 +210,9 @@ int main(int argc, char** argv)
|
|||
#elif ARCH(AARCH64)
|
||||
(void)makeshift_esp;
|
||||
TODO_AARCH64();
|
||||
#elif ARCH(RISCV64)
|
||||
(void)makeshift_esp;
|
||||
TODO_RISCV64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
@ -226,6 +229,9 @@ int main(int argc, char** argv)
|
|||
#elif ARCH(AARCH64)
|
||||
(void)bad_esp;
|
||||
TODO_AARCH64();
|
||||
#elif ARCH(RISCV64)
|
||||
(void)bad_esp;
|
||||
TODO_RISCV64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
@ -247,6 +253,9 @@ int main(int argc, char** argv)
|
|||
#elif ARCH(AARCH64)
|
||||
(void)bad_esp;
|
||||
TODO_AARCH64();
|
||||
#elif ARCH(RISCV64)
|
||||
(void)bad_esp;
|
||||
TODO_RISCV64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
@ -290,6 +299,8 @@ int main(int argc, char** argv)
|
|||
asm volatile("str %eax");
|
||||
#elif ARCH(AARCH64)
|
||||
TODO_AARCH64();
|
||||
#elif ARCH(RISCV64)
|
||||
TODO_RISCV64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
|
|
@ -19,6 +19,10 @@ asm("haxcode:\n"
|
|||
asm("haxcode:\n"
|
||||
"1: b 1b\n"
|
||||
"haxcode_end:\n");
|
||||
#elif ARCH(RISCV64)
|
||||
asm("haxcode:\n"
|
||||
"1: j 1b\n"
|
||||
"haxcode_end:\n");
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue