[PATCH 8/9] bsps/nios2: Use interrupt stack for init stack

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Nov 16 14:45:50 UTC 2018


Update #3459.
---
 bsps/nios2/nios2_iss/start/start.S | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bsps/nios2/nios2_iss/start/start.S b/bsps/nios2/nios2_iss/start/start.S
index 1ffa4fc925..5caa441330 100644
--- a/bsps/nios2/nios2_iss/start/start.S
+++ b/bsps/nios2/nios2_iss/start/start.S
@@ -104,6 +104,9 @@ dcache_init_loop:
 1:
     #------------------------------------------------------
     # jump to (shared) boot_card (never comes back)
+    # use configuration defined stack
+    movhi   sp, %hiadj(_ISR_Stack_area_end - 4)
+    addi    sp, sp, %lo(_ISR_Stack_area_end - 4)
     mov r4, zero
     mov r5, zero
     mov r6, zero
-- 
2.16.4




More information about the devel mailing list