mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47: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
|
@ -723,8 +723,12 @@ void ELF::DynamicLinker::linker_main(DeprecatedString&& main_program_path, int m
|
|||
if (s_do_breakpoint_trap_before_entry) {
|
||||
#if ARCH(AARCH64)
|
||||
asm("brk #0");
|
||||
#else
|
||||
#elif ARCH(RISCV64)
|
||||
asm("ebreak");
|
||||
#elif ARCH(X86_64)
|
||||
asm("int3");
|
||||
#else
|
||||
# error "Unknown architecture"
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue