diff options
Diffstat (limited to 'riscv/reset_vec.S')
| -rw-r--r-- | riscv/reset_vec.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/riscv/reset_vec.S b/riscv/reset_vec.S new file mode 100644 index 00000000..526bbc79 --- /dev/null +++ b/riscv/reset_vec.S @@ -0,0 +1,12 @@ +.global _start + +.text + +_start: + auipc t0, 0x0 + addi a1, t0, 32 + csrr a0, mhartid + ld t0, 24(t0) + jr t0 +.short 0x0000 +.word 0x00000000, 0x80000000 |
