diff options
| author | Miguel <m.i@gmx.at> | 2018-09-09 13:21:47 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-09 13:21:47 +0200 |
| commit | c2ef64149849fcae608b1c6010303eca86229d22 (patch) | |
| tree | 30d69313b6975a7c1bfc80859117124a6a5a10e7 /kernel/interrupts.h | |
| parent | e85a68e1536a0f6505300e1cb79f06b9743b00f7 (diff) | |
cleaning logs, docs, interrupts
Diffstat (limited to 'kernel/interrupts.h')
| -rw-r--r-- | kernel/interrupts.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/kernel/interrupts.h b/kernel/interrupts.h index aafd5d4..48e8c20 100644 --- a/kernel/interrupts.h +++ b/kernel/interrupts.h @@ -2,29 +2,49 @@ #define INTERRUPTS_H #include <stdint.h> + /** * @file * * Interrupts * ========== + * + * Exceptions + * ---------- * 0x00-0x12 Exceptions + * + * Legacy PIC + * ---------- * 0x20-0x27 disabled pic * 0x28-0x36 disabled pic * - * Hardware - * -------- + * Hardware Interrupts + * ------------------- + * This interrupts are remapped by the IOAPIC + * * 0x0 PIT Timer -> 0x90 * 0x1 Keyboard -> 0x91 * 0xC Mouse -> 0x92 * + * Local Interrupts from LAPICs + * ---------------------- * 0x8C APIC Timer * - * Software - * ======== + * Software Interrupts + * ------------------- * 0x80 System Call * 0x81 IPI */ +#define INTERRUPT_PIT_TIMER 0x90 +#define INTERRUPT_KEYBOARD 0x91 +#define INTERRUPT_MOUSE 0x92 + +#define INTERRUPT_APIC_TIMER 0x8C +#define INTERRUPT_SYSCALL 0x80 +#define INTERRUPT_IPI 0x81 + void interrupts_init(uint16_t sel); -void int_install(); +void interrupts_install(); + #endif |
