1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 08:54:57 +00:00

Kernel: Remove another ARCH ifdef using RegisterState::flags()

This commit is contained in:
Brian Gianforcaro 2021-07-23 08:17:36 -07:00 committed by Andreas Kling
parent 8241a6c8eb
commit a3787b9db7

View file

@ -196,13 +196,7 @@ NEVER_INLINE void syscall_handler(TrapFrame* trap)
static constexpr FlatPtr iopl_mask = 3u << 12; static constexpr FlatPtr iopl_mask = 3u << 12;
FlatPtr flags; FlatPtr flags = regs.flags();
#if ARCH(I386)
flags = regs.eflags;
#else
flags = regs.rflags;
#endif
if ((flags & (iopl_mask)) != 0) { if ((flags & (iopl_mask)) != 0) {
PANIC("Syscall from process with IOPL != 0"); PANIC("Syscall from process with IOPL != 0");
} }