[PATCH 3/9] bsps/mips: Use interrupt stack for init stack

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


Update #3459.
---
 bsps/mips/hurricane/start/start.S | 2 ++
 bsps/mips/rbtx4925/start/start.S  | 2 ++
 bsps/mips/rbtx4938/start/start.S  | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/bsps/mips/hurricane/start/start.S b/bsps/mips/hurricane/start/start.S
index e3d97cd167..2a44a26d55 100644
--- a/bsps/mips/hurricane/start/start.S
+++ b/bsps/mips/hurricane/start/start.S
@@ -293,6 +293,8 @@ FRAME(start,sp,0,ra)
 
 
 	move	a0,zero		/* Set command line passed to main */
+	la	sp,_ISR_Stack_area_end # Use configuration defined stack
+	subu	sp,sp,32
 	jal	boot_card
 	nop
 
diff --git a/bsps/mips/rbtx4925/start/start.S b/bsps/mips/rbtx4925/start/start.S
index 058426f8c7..e778550419 100644
--- a/bsps/mips/rbtx4925/start/start.S
+++ b/bsps/mips/rbtx4925/start/start.S
@@ -317,6 +317,8 @@ FRAME(start,sp,0,ra)
 ** End of CPU initialization, ready to start kernel
 */
 	move	a0,zero		/* Set argc passed to main */
+	la	sp,_ISR_Stack_area_end # Use configuration defined stack
+	subu	sp,sp,32
 	jal	boot_card
 	nop
 
diff --git a/bsps/mips/rbtx4938/start/start.S b/bsps/mips/rbtx4938/start/start.S
index 406f1b6bbd..1be87ef3d3 100644
--- a/bsps/mips/rbtx4938/start/start.S
+++ b/bsps/mips/rbtx4938/start/start.S
@@ -316,6 +316,8 @@ FRAME(start,sp,0,ra)
 ** End of CPU initialization, ready to start kernel
 */
 	move	a0,zero		/* Set command line passed to boot_card */
+	la	sp,_ISR_Stack_area_end # Use configuration defined stack
+	subu	sp,sp,32
 	jal	boot_card
 	nop
 
-- 
2.16.4




More information about the devel mailing list