summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-27 15:33:22 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-27 15:33:22 +0200
commitefb1cf0895d6c5019f5a88fa14b59afd030fefca (patch)
tree24fe5d99faad9eeed625d0ef1a6edea65482e246 /src/main.c
parentb5a24778844f41e38168d97761d72cf0d5b400b3 (diff)
Setup descriptor tables, and enable interrupts
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
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