diff options
| author | Alasdair Armstrong | 2018-09-06 17:17:23 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2018-09-06 17:17:23 +0100 |
| commit | eae01f8c348235ea552c67ce323a1ada3dbc8b08 (patch) | |
| tree | 93248a495e8fb4ce44fc1f00f0722fe3736a3d17 /riscv/reset_vec.S | |
| parent | b04f8c9dfa599b48544bac024eaa78e6b93c29d4 (diff) | |
RISCV: Get enough of the RISCV platform into C to run some tests
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 |
