From efb1cf0895d6c5019f5a88fa14b59afd030fefca Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sun, 27 Jul 2025 15:33:22 +0200 Subject: Setup descriptor tables, and enable interrupts --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 4721735..a0c0ebc 100644 --- a/src/main.c +++ b/src/main.c @@ -7,12 +7,15 @@ static void print_size(uint64_t); void main(struct boot_info *info) { + setup_descriptors(); screen_init(&info->framebuffer); welcome(); print(u8"CPU count: %u64\n", cpu_count()); print_memmap(info); - halt(); + /* Uncomment lines below to trigger a page fault (to see if the interrupts are setup correctly) */ +// uint64_t *silly = (uint64_t *)0x1234; +// print(u8"Fun: %u64\n", *silly); } static void -- cgit v1.2.3