mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
Kernel: Make InstructionFetch PageFault flags match up (#5608)
Previously, the instruction fetch flag of the page fault handler did not have the currect binary representation, and would always return false. This aligns these flags.
This commit is contained in:
parent
585123127e
commit
74881ac649
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ public:
|
|||
bool is_write() const { return (m_code & 2) == PageFaultFlags::Write; }
|
||||
bool is_user() const { return (m_code & 4) == PageFaultFlags::UserMode; }
|
||||
bool is_supervisor() const { return (m_code & 4) == PageFaultFlags::SupervisorMode; }
|
||||
bool is_instruction_fetch() const { return (m_code & 8) == PageFaultFlags::InstructionFetch; }
|
||||
bool is_instruction_fetch() const { return (m_code & 16) == PageFaultFlags::InstructionFetch; }
|
||||
|
||||
private:
|
||||
u16 m_code;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue