From 5dfac4879ce5f34503ae7537eefd3fc48d6fa750 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 25 Aug 2021 23:47:08 +0300 Subject: libfdt seems to work At least as far as reading memory info, cool. One issue I have is that .(ro)data is apparently accessed by absolute addresses, so I need to know at which address the kernel is going to be loaded. I would prefer completely position independent code, but if that's not possible then eh. --- arch/riscv/config.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 arch/riscv/config.h (limited to 'arch/riscv/config.h') diff --git a/arch/riscv/config.h b/arch/riscv/config.h new file mode 100644 index 0000000..1818316 --- /dev/null +++ b/arch/riscv/config.h @@ -0,0 +1,3 @@ +#include +#define PM_KERN 0x83800000 +#define VM_KERN ((-1) - SZ_1G) -- cgit v1.3