aboutsummaryrefslogtreecommitdiff
path: root/kernel/main.dats
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-08-06 17:44:45 +0200
committerXander <xander@biltopia.org>2023-08-06 17:44:45 +0200
commitcef3f6bdddfe768e7a1a84edcec76c11c1634941 (patch)
treea7681996224d1d3bf6eeda8657ac500ac061c2d5 /kernel/main.dats
parent272a40095e7c3f694f010d074ab54b326730009e (diff)
downloadats-os-cef3f6bdddfe768e7a1a84edcec76c11c1634941.tar.xz
ats-os-cef3f6bdddfe768e7a1a84edcec76c11c1634941.zip
Implemented panic
Diffstat (limited to 'kernel/main.dats')
-rw-r--r--kernel/main.dats4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/main.dats b/kernel/main.dats
index 4c7d49a..7b7c162 100644
--- a/kernel/main.dats
+++ b/kernel/main.dats
@@ -38,13 +38,13 @@ extern fun breakpoint() :void = "mac#"
extern fun entry(p : Ptr1) : void = "ext#"
implement entry(p) = let
- // Initialize boot info struct
- val () = $BOOT.init(p)
(* val (kernel_start,kernel_end) = get_kernel_ranges(bootptr) *)
(* val (multiboot_start,multiboot_end) = get_multiboot_ranges(bootptr) *)
(* val allocptr = frame_allocator_init(kernel_start,kernel_end,multiboot_start,multiboot_end,bootptr) *)
in
+ // Initialize boot info struct
+ $BOOT.init(p);
clear_screen();
$BOOT.print_memory_mappings();