Split gdt.* from interrupts.*

This commit is contained in:
Justin C. Miller
2018-05-17 09:26:57 -07:00
parent abaa007c54
commit 4005e9e791
5 changed files with 302 additions and 245 deletions

View File

@@ -17,11 +17,17 @@ enum class isr : uint8_t
_zero = 0
};
/// Helper operator to add an offset to an isr vector
isr operator+(const isr &lhs, int rhs);
extern "C" {
/// Set the CPU interrupt enable flag (sti)
void interrupts_enable();
/// Set the CPU interrupt disable flag (cli)
void interrupts_disable();
}
/// Fill the IDT with our ISRs, and disable the legacy
/// PIC interrupts.
void interrupts_init();