From d95c714c8cfdc5818b0e0f0c99cf2e5be66de202 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 12 Sep 2021 21:51:10 +0300 Subject: Initial physical page manager + Will probably still need a fair bit of tweakind and documentation improvements, but seems to work outside of the kernel. Also no valgrind errors, which is quite promising I guess. --- arch/riscv/kernel/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 arch/riscv/kernel/main.c (limited to 'arch/riscv/kernel/main.c') 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 +#include + +void yeet() +{ + int a = 23; +} + +void __main main(struct mm_ptinfo *pageinfo) +{ + yeet(); + while(1){}; +} -- cgit v1.3