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

Sebastian Huber sebh at rtems.org
Mon Nov 19 06:21:26 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov 15 06:40:35 2018 +0100

bsps/sparc64: Use interrupt stack for init stack

Update #3459.

---

 bsps/sparc64/shared/start/start.S | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/bsps/sparc64/shared/start/start.S b/bsps/sparc64/shared/start/start.S
index 92c2177..effdb4e 100644
--- a/bsps/sparc64/shared/start/start.S
+++ b/bsps/sparc64/shared/start/start.S
@@ -103,8 +103,8 @@ zerobss:
 	nop
 
   /* Install stack */
-setstack:
-	set SYM(StackStart), %sp
+	set SYM(_ISR_Stack_area_end), %sp
+	add %sp, -SPARC64_MINIMUM_STACK_FRAME_SIZE, %sp
 	add %sp, -STACK_BIAS, %sp
 
   /* BSP-specific pre-bootcard initializations */
@@ -140,12 +140,5 @@ halted:	nop
 
 .section BOOTSTRAP
   .align CPU_ALIGNMENT
-  .space 32768 - SPARC64_MINIMUM_STACK_FRAME_SIZE ! 32K boot stack grows down
-  .global StackStart
-  StackStart:
-    .space SPARC64_MINIMUM_STACK_FRAME_SIZE ! initial stack frame
-
-.section BOOTSTRAP
-  .align CPU_ALIGNMENT
   param_space:
   	.space 8



More information about the vc mailing list