mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
Kernel: Use a constexpr declaration for the disabled PIC IRQ base
This commit is contained in:
parent
ab976667c4
commit
7028a64997
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
#include <Kernel/Interrupts/IRQController.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static constexpr size_t pic_disabled_vector_base = 0x20;
|
||||
|
||||
class PIC final : public IRQController {
|
||||
public:
|
||||
PIC();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue