Files
jsix/src/kernel/interrupts.h
Justin C. Miller 59700b07db Add initial IO APIC support
- IO APIC vector mapping
- Legacy PIC disable
- Real interrupts happening
2018-05-02 16:46:37 -07:00

28 lines
498 B
C

#pragma once
/// \file interrupts.h
/// Free functions and definitions related to interrupt service vectors
/// Enum of all defined ISR/IRQ vectors
enum class isr : uint8_t
{
#define ISR(i, name) name = i,
#define EISR(i, name) name = i,
#define IRQ(i, q, name) name = i,
#include "interrupt_isrs.inc"
#undef IRQ
#undef EISR
#undef ISR
_zero = 0
};
isr operator+(const isr &lhs, int rhs);
extern "C" {
void interrupts_enable();
void interrupts_disable();
}
void interrupts_init();