diff options
Diffstat (limited to 'arch/riscv/init/head.S')
| -rw-r--r-- | arch/riscv/init/head.S | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
