From 4038ec5662a5b1ebe652e9170069e3f2f79c7e71 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 24 Aug 2024 00:05:47 +0200 Subject: Bootstrap the project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- kernel/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 kernel/main.c (limited to 'kernel/main.c') 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 + +/* + * 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 (;;) + ; +} -- cgit v1.2.3