From 565724db3b73ee67fa996dab511dc52df586cee1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 17 Aug 2021 21:47:38 +0300 Subject: Garbage --- arch/riscv/init/head.S | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/riscv/init/head.S (limited to 'arch/riscv/init/head.S') diff --git a/arch/riscv/init/head.S b/arch/riscv/init/head.S new file mode 100644 index 0000000..703d265 --- /dev/null +++ b/arch/riscv/init/head.S @@ -0,0 +1,10 @@ +.section .init.start +.global _start +.type _start, @function +_start: + /* store kernel load address */ + auipc a4, 0 + /* stack grows downward */ + mv sp, a4 + /* go to proper init */ + j init -- cgit v1.3