From 1f2819aeeb98fc71c49563bac49a0c537dc12571 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 20 Oct 2017 18:35:18 +0100 Subject: [PATCH] Added kernel entry-point. --- kernel.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel.nim b/kernel.nim index 6cd99ee..643033e 100644 --- a/kernel.nim +++ b/kernel.nim @@ -54,3 +54,8 @@ proc terminalWriteChar(writeChar: char) = proc terminalWrite(data: string) = for character in data: terminalWriteChar(character) + +proc kernelMain() {.exportc: "kernel_main"}= + terminalInitialize() + terminalWrite("Hello World") +