some cleanup from debugging and todos
This commit is contained in:
@ -17,18 +17,22 @@ static bool vectors[IDT_MAX_DESCRIPTORS];
|
||||
|
||||
void exception_handler(unsigned int i)
|
||||
{
|
||||
if (i <= 31) { // TODO: implement proper handling for each exception, also implement the proper gates & error code checking
|
||||
#ifdef __TESTING__
|
||||
kerror("EXCEPTION");
|
||||
printf("Exeption: %u\n", i);
|
||||
kerror("EXCEPTION");
|
||||
printf("Exeption: %u\n", i);
|
||||
#endif
|
||||
if (i <= 31)
|
||||
__asm__ volatile ("cli; hlt"); // hangs the computer
|
||||
}
|
||||
|
||||
if (i == PIC_KEYB) {
|
||||
#ifdef __TESTING__
|
||||
kinfo("Sending EOI instruction to KEYB");
|
||||
#endif
|
||||
printf("Scancode: %x\n", inb(0x60)); // read from kb
|
||||
printf("Scancode: %x\n", inb(0x60)); // read from kb
|
||||
/**
|
||||
* TODO: this is a cute temporary fix but lets do a real keyboard driver please?
|
||||
*/
|
||||
|
||||
PIC_sendEOI(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user