From 9b2ef07f4b2307c2ea7c057918643747e8e2f4a4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 22 Jun 2018 13:30:21 +0200 Subject: bsp/riscv: Load global pointer Update #3433. --- bsps/riscv/riscv/start/start.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bsps/riscv') diff --git a/bsps/riscv/riscv/start/start.S b/bsps/riscv/riscv/start/start.S index 3674a4bdb5..58bc57dc12 100644 --- a/bsps/riscv/riscv/start/start.S +++ b/bsps/riscv/riscv/start/start.S @@ -46,6 +46,12 @@ PUBLIC(_start) TYPE_FUNC(_start) SYM(_start): + /* Load global pointer */ + .option push + .option norelax + la gp, __global_pointer$ + .option pop + la t0, ISR_Handler csrw mtvec, t0 -- cgit v1.2.3