[U-Boot] [PATCH 21/30] riscv: remove CONFIG_INIT_CRITICAL

Lukas Auer lukas.auer at aisec.fraunhofer.de
Fri Oct 19 22:07:34 UTC 2018


CONFIG_INIT_CRITICAL is deprecated and not used for RISC-V. Remove it.

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 88b4aaa1c0..f375a9316e 100644
--- a/arch/riscv/cpu/start.S
+++ b/arch/riscv/cpu/start.S
@@ -50,13 +50,6 @@ handle_reset:
 	csrwi	mstatus, 0
 	csrwi	mie, 0
 
-/*
- * Do CPU critical regs init only at reboot,
- * not when booting from ram
- */
-#ifdef CONFIG_INIT_CRITICAL
-	jal	cpu_init_crit		/* Do CPU critical regs init */
-#endif
 
 /*
  * Set stackpointer in internal/ex RAM to call board_init_f
@@ -286,7 +279,3 @@ trap_entry:
 	addi	sp, sp, 32*REGBYTES
 	mret
 
-#ifdef CONFIG_INIT_CRITICAL
-cpu_init_crit:
-    ret
-#endif
-- 
2.17.2



More information about the U-Boot mailing list