summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-31 22:33:56 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-31 22:33:56 +0200
commit5e12467c860372dfa10323365fb0df9db79c8f9b (patch)
tree13e81afa3accb633fdb0ab0d655244ea752814a5 /src/main.c
parent0a817a5a74c328229f8a732fc3ec22d8fd7dc20d (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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index a3b7719..eddba5e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */
}