Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2003 21:54:05 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 30905 for review
Message-ID:  <200305100454.h4A4s5eq029888@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=30905

Change 30905 by jmallett@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305100454.h4A4s5eq029888>