aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/init
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64/init')
-rw-r--r--arch/riscv64/init/start.S3
1 files changed, 3 insertions, 0 deletions
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