[ BIG CHANGE ] Properly Implemented IDT

- New include files: idt.h, pic.h, syscall.h and exceptions.h
- Proper exception handling (still could be improved
- PIC properly initiated and irqs all masked
- BREAKS Keyboard - The keyboard IRQ is not handled anymore
- convertColor() is kinda broken :/ (More in README.md)
This commit is contained in:
2024-05-05 21:03:21 +02:00
parent 29418eb46b
commit 1d71a4e384
15 changed files with 448 additions and 617 deletions
+3 -2
View File
@@ -1,8 +1,8 @@
#ifndef KEYBOARD_H
#define KEYBOARD_H
#include "irq.h"
#include "idt.h"
#include "pic.h"
#include "system.h"
#include "screen.h"
#include "stdint.h"
@@ -92,7 +92,8 @@ char* read(char terminator) {
}
void setupKeyboard() {
installIrqHandler(1, keyboardHandler);
idtSetGate(33, keyboardHandler, INT_GATE_FLAGS);
setIrqMask(1);
}
#endif