[PATCH 7/9] bsps/sparc64: Use interrupt stack for init stack

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


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 92c2177c1e..effdb4e842 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 */
@@ -138,13 +138,6 @@ setstack:
 halted:	nop
 	    b SYM(halted)
 
-.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:
-- 
2.16.4




More information about the devel mailing list