aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r--arch/riscv/kernel/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/riscv/kernel/main.c b/arch/riscv/kernel/main.c
new file mode 100644
index 0000000..9334fb3
--- /dev/null
+++ b/arch/riscv/kernel/main.c
@@ -0,0 +1,13 @@
+#include <pages.h>
+#include <apos/main.h>
+
+void yeet()
+{
+ int a = 23;
+}
+
+void __main main(struct mm_ptinfo *pageinfo)
+{
+ yeet();
+ while(1){};
+}