1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:07:35 +00:00

Kernel: Add the NonMaskableInterruptDisabler class

This class will be used later to disable NMIs when we
initialize the RTC timer.
This commit is contained in:
Liav A 2020-02-26 02:04:05 +02:00 committed by Andreas Kling
parent 07679e347c
commit 9a303cc5a5
2 changed files with 17 additions and 0 deletions

View file

@ -369,6 +369,12 @@ private:
u32 m_flags;
};
class NonMaskableInterruptDisabler {
public:
NonMaskableInterruptDisabler();
~NonMaskableInterruptDisabler();
};
/* Map IRQ0-15 @ ISR 0x50-0x5F */
#define IRQ_VECTOR_BASE 0x50