[PATCH 1/9] bsps/m68k: Use interrupt stack for init stack

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


Update #3459.
---
 bsps/m68k/av5282/start/start.S       | 1 +
 bsps/m68k/csb360/start/start.S       | 1 +
 bsps/m68k/mcf5206elite/start/start.S | 1 +
 bsps/m68k/mcf5235/start/start.S      | 1 +
 bsps/m68k/uC5282/start/start.S       | 1 +
 5 files changed, 5 insertions(+)

diff --git a/bsps/m68k/av5282/start/start.S b/bsps/m68k/av5282/start/start.S
index 5075851245..1142316877 100644
--- a/bsps/m68k/av5282/start/start.S
+++ b/bsps/m68k/av5282/start/start.S
@@ -369,6 +369,7 @@ ZEROLOOPTEST:
     /*
      * Right : Now we're ready to boot RTEMS
      */
+    move.l  #_ISR_Stack_area_end,sp | Use configuration defined stack
     clrl    d0          | Pass in null to all boot_card() params
     movel   d0,a7 at -         | command line
     jsr SYM(boot_card)      | Call C boot_card function to startup RTEMS
diff --git a/bsps/m68k/csb360/start/start.S b/bsps/m68k/csb360/start/start.S
index 299c8dad32..b90db2276e 100644
--- a/bsps/m68k/csb360/start/start.S
+++ b/bsps/m68k/csb360/start/start.S
@@ -349,6 +349,7 @@ SYM(start_csb360):
 	/*
 	 * Right : Now we're ready to boot RTEMS
 	 */
+	move.l	#_ISR_Stack_area_end,sp	| Use configuration defined stack
 	clrl	d0			| Pass in null to all boot_card() params
 	movel	d0,a7 at -			| command line
 	jsr	SYM(boot_card)		| Call C boot_card function to startup RTEMS
diff --git a/bsps/m68k/mcf5206elite/start/start.S b/bsps/m68k/mcf5206elite/start/start.S
index 57848ff92b..b797b23717 100644
--- a/bsps/m68k/mcf5206elite/start/start.S
+++ b/bsps/m68k/mcf5206elite/start/start.S
@@ -355,6 +355,7 @@ ZEROLOOPTEST:
 	/*
 	 * Right : Now we're ready to boot RTEMS
 	 */
+	move.l	#_ISR_Stack_area_end,sp	| Use configuration defined stack
 	clrl	d0			| Pass in null to all boot_card() params
 	movel	d0,a7 at -			| command line
 	jsr	SYM(boot_card)		| Call C boot_card function to startup RTEMS
diff --git a/bsps/m68k/mcf5235/start/start.S b/bsps/m68k/mcf5235/start/start.S
index 66b8f487de..cf33070d16 100644
--- a/bsps/m68k/mcf5235/start/start.S
+++ b/bsps/m68k/mcf5235/start/start.S
@@ -364,6 +364,7 @@ ZEROLOOPTEST:
     /*
      * Right : Now we're ready to boot RTEMS
      */
+    move.l  #_ISR_Stack_area_end,sp | Use configuration defined stack
     clrl    d0                      | Pass in null to all boot_card() params
     movel   d0,a7 at -                 | command line
     jsr SYM(boot_card)              | Call C boot_card function to startup RTEMS
diff --git a/bsps/m68k/uC5282/start/start.S b/bsps/m68k/uC5282/start/start.S
index 641c174a92..63ac62e15d 100644
--- a/bsps/m68k/uC5282/start/start.S
+++ b/bsps/m68k/uC5282/start/start.S
@@ -378,6 +378,7 @@ ZEROLOOPTEST:
     /*
      * Right : Now we're ready to boot RTEMS
      */
+    move.l  #_ISR_Stack_area_end,sp | Use configuration defined stack
     clrl    d0          | Pass in null to all boot_card() params
     movel   d0,a7 at -         | command line
     jsr SYM(boot_card)      | Call C boot_card function to startup RTEMS
-- 
2.16.4



More information about the devel mailing list