mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +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
Notes:
sideshowbarker
2024-07-18 21:45:32 +09:00
Author: https://github.com/Sylvyrfysh 🔰 Commit: https://github.com/SerenityOS/serenity/commit/74881ac6497 Pull-request: https://github.com/SerenityOS/serenity/pull/5608
|
@ -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…
Reference in a new issue