mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:17:44 +00:00
AK+Userland: Stub out code that isn't currently implemented on AARCH64
Even though this almost certainly wouldn't run properly even if we had a working kernel for AARCH64 this at least lets us build all the userland binaries.
This commit is contained in:
parent
c18c84dbfd
commit
31bd5b1a02
17 changed files with 206 additions and 6 deletions
|
@ -171,6 +171,8 @@ NonnullOwnPtrVector<DebugInfo::VariableInfo> DebugInfo::get_variables_in_current
|
|||
ip = regs.eip;
|
||||
#elif ARCH(X86_64)
|
||||
ip = regs.rip;
|
||||
#elif ARCH(AARCH64)
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
|
|
@ -343,11 +343,15 @@ FlatPtr DebugSession::single_step()
|
|||
// After the debuggee has stopped, we clear the TRAP flag.
|
||||
|
||||
auto regs = get_registers();
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
constexpr u32 TRAP_FLAG = 0x100;
|
||||
#endif
|
||||
#if ARCH(I386)
|
||||
regs.eflags |= TRAP_FLAG;
|
||||
#elif ARCH(X86_64)
|
||||
regs.rflags |= TRAP_FLAG;
|
||||
#elif ARCH(AARCH64)
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
@ -365,6 +369,8 @@ FlatPtr DebugSession::single_step()
|
|||
regs.eflags &= ~(TRAP_FLAG);
|
||||
#elif ARCH(X86_64)
|
||||
regs.rflags &= ~(TRAP_FLAG);
|
||||
#elif ARCH(AARCH64)
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
|
|
@ -188,6 +188,9 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
|
|||
FlatPtr current_instruction = regs.eip;
|
||||
#elif ARCH(X86_64)
|
||||
FlatPtr current_instruction = regs.rip;
|
||||
#elif ARCH(AARCH64)
|
||||
FlatPtr current_instruction;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
@ -211,6 +214,9 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
|
|||
FlatPtr current_ebp = regs.ebp;
|
||||
#elif ARCH(X86_64)
|
||||
FlatPtr current_ebp = regs.rbp;
|
||||
#elif ARCH(AARCH64)
|
||||
FlatPtr current_ebp;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
@ -259,6 +265,9 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
|
|||
regs.eip = breakpoint_addr;
|
||||
#elif ARCH(X86_64)
|
||||
regs.rip = breakpoint_addr;
|
||||
#elif ARCH(AARCH64)
|
||||
(void)breakpoint_addr;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue