diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-07-31 22:33:56 +0200 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-07-31 22:33:56 +0200 |
commit | 5e12467c860372dfa10323365fb0df9db79c8f9b (patch) | |
tree | 13e81afa3accb633fdb0ab0d655244ea752814a5 /src/main.c | |
parent | 0a817a5a74c328229f8a732fc3ec22d8fd7dc20d (diff) |
APIC/ACPI/keyboard stuff. I now get interrupts when a key is pressed
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -9,7 +9,12 @@ main(struct boot_info *info) setup_descriptors(); setup_paging(info); + setup_acpi(info->rsdp, &info->ioapic); + setup_apic(&info->ioapic); + setup_keyboard(); - int *x = (int*)0xBEEF; - *x = 4; /* This should give us a page fault, and trigger the panic function */ + halt(); + +// int *x = (int*)0x0001; +// *x = 4; /* This should give us a page fault, and trigger the panic function */ } |