Fixed kbd (buffer flush)

This commit is contained in:
2026-03-08 09:54:45 +01:00
parent 77d9df6f48
commit 5e9c582833
5 changed files with 23 additions and 15 deletions

View File

@@ -54,7 +54,7 @@ void idt_init()
{
// We set 256 entries, but we have only the first few stubs.
// Undefined behavior?
for (size_t i=0; i<256; i++)
for (size_t i=0; i<=33; i++)
{
// Each vector handler is 16-byte aligned, so <vector_no>*16 = address of that handler
idt_set_entry(i, vector_0_handler + (i*16), 0);
@@ -210,6 +210,7 @@ struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
case 33:
DEBUG("Keyboard Interrupt");
keyboard_handler();
outb(0x20, 0x20);
break;
default: