mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
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:
parent
a10accd48c
commit
f0a1d9bfa5
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue