aboutsummaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-24 00:05:47 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-24 09:13:49 +0200
commit4038ec5662a5b1ebe652e9170069e3f2f79c7e71 (patch)
treec04772eba8e9b0584ccc80bea9a72dfd9f173d86 /kernel/main.c
downloadfbos-4038ec5662a5b1ebe652e9170069e3f2f79c7e71.tar.gz
fbos-4038ec5662a5b1ebe652e9170069e3f2f79c7e71.zip
Bootstrap the project
For now the base layout has been defined and we have a binary that is properly reached through openSBI. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c
new file mode 100644
index 0000000..325f858
--- /dev/null
+++ b/kernel/main.c
@@ -0,0 +1,12 @@
+#include <fbos/init.h>
+
+/*
+ * This is the main entry point of the kernel after head.S is done. This
+ * function can (and will) assume that everything has been reset and that we can
+ * start the whole thing.
+ */
+__noreturn __kernel void start_kernel(void)
+{
+ for (;;)
+ ;
+}