diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-17 21:47:38 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-17 21:49:16 +0300 |
| commit | 565724db3b73ee67fa996dab511dc52df586cee1 (patch) | |
| tree | d3bd77006c2c57aa961f85c4fc677bd72f6251ae /arch/riscv/init/head.S | |
| download | kmi-565724db3b73ee67fa996dab511dc52df586cee1.tar.gz kmi-565724db3b73ee67fa996dab511dc52df586cee1.zip | |
Garbage
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 |
