From 6abd5eb3a9eb3fa30599b6564e6db53b2cc8da8c Mon Sep 17 00:00:00 2001 From: Xander Date: Mon, 14 Aug 2023 22:22:12 +0200 Subject: No dynamic load in main --- kernel/main.dats | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'kernel') diff --git a/kernel/main.dats b/kernel/main.dats index bbac122..65cb8df 100644 --- a/kernel/main.dats +++ b/kernel/main.dats @@ -5,6 +5,8 @@ staload BOOT = "kernel/bootinfo/multiboot.sats" staload FRAME = "kernel/memory/frame.sats" staload "lib/SATS/writer.sats" +#define ATS_DYNLOADFLAG 0 + %{^ void breakpoint(){ __asm__("int3"); @@ -35,8 +37,8 @@ end extern fun breakpoint() :void = "mac#" -extern fun entry(p : Ptr1) : void = "ext#" -implement entry(p) = let +extern fun main(p : Ptr1) : void = "ext#" +implement main(p) = let val () = $BOOT.init(p); val (kernel_start,kernel_end) = $BOOT.get_kernel_ranges() val (multiboot_start,multiboot_end) = $BOOT.get_multiboot_ranges() @@ -64,6 +66,3 @@ in println!("End"); end -// Satisfy ats compiler. Should be called once to dynload files -implement main(argv,argc) = 0 - -- cgit v1.2.3