diff options
author | Nick Johnson <sylvyrfysh@gmail.com> | 2021-03-03 04:04:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 11:04:51 +0100 |
commit | 74881ac649742ea5b1b34c78ee365440e04ef046 (patch) | |
tree | 3f87c9866cc649f0877d6d143374a364d725b5b3 | |
parent | 585123127ec5bc8eb4e66d1ce3a67bea46f59006 (diff) | |
download | serenity-74881ac649742ea5b1b34c78ee365440e04ef046.zip |
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.
-rw-r--r-- | Kernel/Arch/i386/CPU.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Arch/i386/CPU.h b/Kernel/Arch/i386/CPU.h index ac0b4eb731..e343369a29 100644 --- a/Kernel/Arch/i386/CPU.h +++ b/Kernel/Arch/i386/CPU.h @@ -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; |