diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-21 21:34:18 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-21 21:34:18 +0300 |
| commit | dd7c04a39bd88da8e381bb88078c41b049a6665c (patch) | |
| tree | f5210700cc1789547ae55926c7f9aaa753fbb791 /arch/riscv64/init | |
| parent | ec989bbe7d9bb7a844eeddeceaeb7bb7e4d5dab6 (diff) | |
| download | kmi-dd7c04a39bd88da8e381bb88078c41b049a6665c.tar.gz kmi-dd7c04a39bd88da8e381bb88078c41b049a6665c.zip | |
beautification
Diffstat (limited to 'arch/riscv64/init')
| -rw-r--r-- | arch/riscv64/init/start.S | 3 |
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 |
