diff options
| author | Carlos Maiolino <[email protected]> | 2025-09-14 15:11:20 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-09-14 15:11:20 +0200 |
| commit | 9c7a059f64c86e5026cbbc5c6ae2f48be0f56c0c (patch) | |
| tree | 752a262b102bb7a40e0296e06e7aa51ec14b1e16 /src/include/toxic/idt.h | |
| parent | 364b023b2c50a7e810bf4f975150fc50c179e135 (diff) | |
Enable interrupts only after IDT is set
So far we've been playing a dangerous game... We enabled interrupts
before we actually had the interrupt descriptor table setup.
Fix this so we prevent IRQs to fire before the table is initialized
and attempt to run garbage instead of code
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/include/toxic/idt.h')
| -rw-r--r-- | src/include/toxic/idt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/toxic/idt.h b/src/include/toxic/idt.h index f54f7f7..175e84f 100644 --- a/src/include/toxic/idt.h +++ b/src/include/toxic/idt.h @@ -24,4 +24,6 @@ struct int_reg_descriptor { } __attribute__((packed)); void interrupts_init(void); +void enable_interrupts(void); +void disable_interrupts(void); #endif /* IDT_H */ |
