mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Kernel: Remove another ARCH ifdef using RegisterState::flags()
This commit is contained in:
parent
8241a6c8eb
commit
a3787b9db7
Notes:
sideshowbarker
2024-07-18 08:29:22 +09:00
Author: https://github.com/bgianfo
Commit: a3787b9db7
Pull-request: https://github.com/SerenityOS/serenity/pull/8963
1 changed files with 1 additions and 7 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue