PERFORCE change 30905 for review

Juli Mallett jmallett at FreeBSD.org
Fri May 9 21:54:07 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=30905

Change 30905 by jmallett at jmallett_dalek on 2003/05/09 21:54:02

	Use an ungodly huge stack, for now, it's doing well here
	and since that my random problems have gone away, but that
	may be the result of other things related to mutex_init.
	
	Prime the GP, compiler changes going in soon need this to
	produce a booting kernel.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/locore.S#6 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/locore.S#6 (text+ko) ====

@@ -33,12 +33,13 @@
 #include "assym.s"
 
 	.data
+GLOBAL(stackspace)
+	.space 131072
+GLOBAL(topstack)
 /*
  * Dummy interrupt table to keep sysctl happy until
  * it's worked out what to do with naming
  */
-GLOBAL(stackspace)
-	.space 16384
 GLOBAL(intrnames)
 	.asciz "dummy"
 GLOBAL(eintrnames)
@@ -50,7 +51,8 @@
 	.set noreorder
 
 	.text
-ENTRY(btext)
+	.globl btext
+btext:
 ENTRY(start)
 	# t0: Bits to preserve if set:
 	# 	Soft reset
@@ -81,14 +83,23 @@
 	sw	t0, cpu_id
 	sw	t1, fpu_id
 
+	# Set up the GP.
+	la	gp, _gp
+
 	# Set up our temporary stack.
-	la	sp, stackspace
-	addu	sp, 16384
+	la	sp, topstack
 
 	# Call the platform-specific startup code.
 	jal	platform_start
 	nop
 
+#if 0
+	# Put thread0 onto our temporary stack.
+	ld	t0, pcpup
+	ld	t0, PC_CURTHREAD(t0)
+	sd	sp, TD_KSTACK(t0)
+#endif
+
 	# Start MI things rolling.
 	jal	mi_startup
 	nop


More information about the p4-projects mailing list