PERFORCE change 133297 for review
    Warner Losh 
    imp at FreeBSD.org
       
    Mon Jan 14 18:00:01 PST 2008
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=133297
Change 133297 by imp at imp_lighthouse on 2008/01/15 01:59:51
	Copy the topstack construct from mips2.  Change PAGE_SIZE to NBPG
	to match what's used here (the param.h stuff is too tricky to
	try to sort out atm).  Use topstack in preference to putting the
	stack just before 'start' since that appears to be used for
	other according to nm.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/locore.S#9 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/locore.S#9 (text+ko) ====
@@ -83,14 +83,16 @@
 GLOBAL(cfe_vector)
 	.space 4
 #endif
-
+GLOBAL(stackspace)
+	.space NBPG /* Smaller than it should be since it's temp. */
+	.align 8
+GLOBAL(topstack)
+	.set noreorder
+	
 	.text
-	.set	noreorder		# Noreorder is default style!
 
-	.globl	_C_LABEL(_start)
-	.globl	_C_LABEL(btext)
-_C_LABEL(_start):
-_C_LABEL(btext):
+GLOBAL(btext)
+ASM_ENTRY(_start)
 VECTOR(_locore, unknown)
 	/* UNSAFE TO USE a0..a3, since some bootloaders pass that to us */
 
@@ -142,7 +144,7 @@
 /*
  * Initialize stack and call machine startup.
  */
-	la	sp, _start - START_FRAME
+	la	sp, topstack - START_FRAME
 	la	gp, _C_LABEL(_gp)
 	sw	zero, START_FRAME - 4(sp)  # Zero out old ra for debugger
 
    
    
More information about the p4-projects
mailing list