diff --git a/Kernel/Interrupts/PIC.cpp b/Kernel/Interrupts/PIC.cpp index b8f29cdf64..03fe0034bc 100644 --- a/Kernel/Interrupts/PIC.cpp +++ b/Kernel/Interrupts/PIC.cpp @@ -148,7 +148,7 @@ void PIC::complete_eoi() const void PIC::hard_disable() { InterruptDisabler disabler; - remap(0x20); + remap(pic_disabled_vector_base); IO::out8(PIC0_CMD, 0xff); IO::out8(PIC1_CMD, 0xff); m_cached_irq_mask = 0xffff; diff --git a/Kernel/Interrupts/PIC.h b/Kernel/Interrupts/PIC.h index 5657a11b30..03ca59bf21 100644 --- a/Kernel/Interrupts/PIC.h +++ b/Kernel/Interrupts/PIC.h @@ -10,6 +10,9 @@ #include namespace Kernel { + +static constexpr size_t pic_disabled_vector_base = 0x20; + class PIC final : public IRQController { public: PIC();