mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
Userland: Remove i686 support
This commit is contained in:
parent
55f17fff36
commit
445b5e1e94
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/supercomputer7
Commit: 445b5e1e94
Pull-request: https://github.com/SerenityOS/serenity/pull/15467
Issue: https://github.com/SerenityOS/serenity/issues/15444
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/fuel-pcbox
5 changed files with 6 additions and 60 deletions
|
@ -210,11 +210,7 @@ END_VALUES_TO_NAMES()
|
|||
|
||||
static int g_pid = -1;
|
||||
|
||||
#if ARCH(I386)
|
||||
using syscall_arg_t = u32;
|
||||
#elif ARCH(X86_64) || ARCH(AARCH64)
|
||||
using syscall_arg_t = u64;
|
||||
#endif
|
||||
|
||||
static void handle_sigint(int)
|
||||
{
|
||||
|
@ -887,12 +883,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
PtraceRegisters regs = {};
|
||||
TRY(Core::System::ptrace(PT_GETREGS, g_pid, ®s, 0));
|
||||
#if ARCH(I386)
|
||||
syscall_arg_t syscall_index = regs.eax;
|
||||
syscall_arg_t arg1 = regs.edx;
|
||||
syscall_arg_t arg2 = regs.ecx;
|
||||
syscall_arg_t arg3 = regs.ebx;
|
||||
#elif ARCH(X86_64)
|
||||
#if ARCH(X86_64)
|
||||
syscall_arg_t syscall_index = regs.rax;
|
||||
syscall_arg_t arg1 = regs.rdx;
|
||||
syscall_arg_t arg2 = regs.rcx;
|
||||
|
@ -915,9 +906,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
TRY(Core::System::ptrace(PT_GETREGS, g_pid, ®s, 0));
|
||||
|
||||
#if ARCH(I386)
|
||||
u32 res = regs.eax;
|
||||
#elif ARCH(X86_64)
|
||||
#if ARCH(X86_64)
|
||||
u64 res = regs.rax;
|
||||
#elif ARCH(AARCH64)
|
||||
u64 res = 0; // FIXME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue