aboutsummaryrefslogtreecommitdiff
path: root/kernel/main.dats
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/main.dats')
-rw-r--r--kernel/main.dats9
1 files changed, 4 insertions, 5 deletions
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
-