From dd7c04a39bd88da8e381bb88078c41b049a6665c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 21 Oct 2022 21:34:18 +0300 Subject: beautification --- arch/riscv64/init/start.S | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/riscv64/init') diff --git a/arch/riscv64/init/start.S b/arch/riscv64/init/start.S index 646a4af..e5b6ced 100644 --- a/arch/riscv64/init/start.S +++ b/arch/riscv64/init/start.S @@ -5,7 +5,10 @@ .global _start /* Entry point to the kernel loader. */ _start: +/* load static stack */ li sp, PM_STACK_TOP +/* make sure there's no garbage in tp, important for id assignment */ +li tp, 0 call init .section .text -- cgit v1.3