aboutsummaryrefslogtreecommitdiff
path: root/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel.c')
-rw-r--r--kernel.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel.c b/kernel.c
new file mode 100644
index 0000000..84d5587
--- /dev/null
+++ b/kernel.c
@@ -0,0 +1,16 @@
+// Complain if some pleb's not using a cross-compiler
+#ifdef __linux__
+ #error "You're not using a cross-compiler. Good luck with that."
+#endif
+
+#include <toast.h>
+
+void kernel_main()
+{
+ console_init();
+ console_set_colors(COLOR_BRIGHT_GRAY,COLOR_BLACK);
+ console_clear();
+ console_print("Welcome to Toast "KERNEL_VERSION" (nickname '"KERNEL_NICKNAME"')\n");
+ console_set_color(COLOR_RED);
+ console_print("Here is kernel_main()\n");
+} \ No newline at end of file