[rtems commit] bsps/mips: Use interrupt stack for init stack

Sebastian Huber sebh at rtems.org
Mon Nov 19 06:20:53 UTC 2018


Module:    rtems
Branch:    master
Commit:    508f319ef7f488e652984973a7d948907d9bdba6
Changeset: http://git.rtems.org/rtems/commit/?id=508f319ef7f488e652984973a7d948907d9bdba6

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Nov 16 07:43:51 2018 +0100

bsps/mips: Use interrupt stack for init stack

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 e3d97cd..2a44a26 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 058426f..e778550 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 406f1b6..1be87ef 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
 



More information about the vc mailing list