mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
Kernel: Remove another ARCH ifdef using RegisterState::flags()
This commit is contained in:
committed by
Andreas Kling
parent
8241a6c8eb
commit
a3787b9db7
@@ -196,13 +196,7 @@ NEVER_INLINE void syscall_handler(TrapFrame* trap)
|
||||
|
||||
static constexpr FlatPtr iopl_mask = 3u << 12;
|
||||
|
||||
FlatPtr flags;
|
||||
#if ARCH(I386)
|
||||
flags = regs.eflags;
|
||||
#else
|
||||
flags = regs.rflags;
|
||||
#endif
|
||||
|
||||
FlatPtr flags = regs.flags();
|
||||
if ((flags & (iopl_mask)) != 0) {
|
||||
PANIC("Syscall from process with IOPL != 0");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user