diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-07-27 15:33:22 +0200 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-07-27 15:33:22 +0200 |
commit | efb1cf0895d6c5019f5a88fa14b59afd030fefca (patch) | |
tree | 24fe5d99faad9eeed625d0ef1a6edea65482e246 /src/main.c | |
parent | b5a24778844f41e38168d97761d72cf0d5b400b3 (diff) |
Setup descriptor tables, and enable interrupts
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |