1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:24:58 +00:00

Userland: Remove i686 support

This commit is contained in:
Liav A 2022-10-04 02:51:58 +03:00 committed by Andreas Kling
parent 55f17fff36
commit 445b5e1e94
5 changed files with 6 additions and 60 deletions

View file

@ -50,15 +50,7 @@ static void print_syscall(PtraceRegisters& regs, size_t depth)
}
StringView begin_color = g_should_output_color ? "\033[34;1m"sv : ""sv;
StringView end_color = g_should_output_color ? "\033[0m"sv : ""sv;
#if ARCH(I386)
outln("=> {}SC_{}({:#x}, {:#x}, {:#x}){}",
begin_color,
Syscall::to_string((Syscall::Function)regs.eax),
regs.edx,
regs.ecx,
regs.ebx,
end_color);
#elif ARCH(X86_64)
#if ARCH(X86_64)
outln("=> {}SC_{}({:#x}, {:#x}, {:#x}){}",
begin_color,
Syscall::to_string((Syscall::Function)regs.rax),
@ -146,9 +138,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return Debug::DebugSession::DebugDecision::ContinueBreakAtSyscall;
}
#if ARCH(I386)
const FlatPtr ip = regs.value().eip;
#elif ARCH(X86_64)
#if ARCH(X86_64)
const FlatPtr ip = regs.value().rip;
#elif ARCH(AARCH64)
const FlatPtr ip = 0; // FIXME