Kernel: Mark the x86 IDT as READONLY_AFTER_INIT

We never need to modify the interrupt descriptor table after finishing
initialization, so let's make it an error to do so.
This commit is contained in:
Andreas Kling 2021-02-14 17:38:44 +01:00
parent a10accd48c
commit f0a1d9bfa5

View file

@ -58,8 +58,8 @@ extern FlatPtr end_of_ro_after_init;
namespace Kernel {
static DescriptorTablePointer s_idtr;
static Descriptor s_idt[256];
READONLY_AFTER_INIT static DescriptorTablePointer s_idtr;
READONLY_AFTER_INIT static Descriptor s_idt[256];
static GenericInterruptHandler* s_interrupt_handler[GENERIC_INTERRUPT_HANDLERS_COUNT];