[U-Boot] [PATCH 22/30] riscv: remove unused labels in start.S
Lukas Auer
lukas.auer at aisec.fraunhofer.de
Fri Oct 19 22:07:35 UTC 2018
The labels nmi_vector, trap_vector and handle_reset in start.S are not
used for RISC-V. Remove them.
While we are here, also remove the code from the beginning of start.S,
which stores the contents of a2 to memory. Only registers a0 and a1
contain information from the previous boot stage. There is therefore no
reason for saving a2.
Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
---
arch/riscv/cpu/start.S | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S
index f375a9316e..851a1d0870 100644
--- a/arch/riscv/cpu/start.S
+++ b/arch/riscv/cpu/start.S
@@ -34,17 +34,6 @@
.section .text
.globl _start
_start:
- j handle_reset
-
-nmi_vector:
- j nmi_vector
-
-trap_vector:
- j trap_entry
-
-handle_reset:
- li t0, CONFIG_SYS_SDRAM_BASE
- SREG a2, 0(t0)
la t0, trap_entry
csrw mtvec, t0
csrwi mstatus, 0
--
2.17.2
More information about the U-Boot
mailing list