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/init/head.S | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'arch/riscv/init/head.S') diff --git a/arch/riscv/init/head.S b/arch/riscv/init/head.S index 703d265..bbd2945 100644 --- a/arch/riscv/init/head.S +++ b/arch/riscv/init/head.S @@ -2,9 +2,6 @@ .global _start .type _start, @function _start: - /* store kernel load address */ - auipc a4, 0 - /* stack grows downward */ - mv sp, a4 + /* stack pointer is whatever? */ /* go to proper init */ j init -- cgit v1.3