Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2004 00:38:11 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 48877 for review
Message-ID:  <200403130838.i2D8cB85054575@repoman.freebsd.org>

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

Change 48877 by jmallett@jmallett_oingo on 2004/03/13 00:37:13

	Save new thread when calling into pmap...

Affected files ...

.. //depot/projects/mips/sys/mips/mips/swtch.S#4 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/swtch.S#4 (text+ko) ====

@@ -23,7 +23,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/mips/sys/mips/mips/swtch.S#3 $
+ * $P4: //depot/projects/mips/sys/mips/mips/swtch.S#4 $
  */
 
 #include <machine/asm.h>
@@ -63,11 +63,15 @@
  * a1: struct thread *new
  */
 ENTRY(cpu_throw)
+	dsubu	sp, 8
+	sd	a1, 0(sp)
 	jal	pmap_activate
 	move	a0, a1
 	dla	k0, pcpup
 	ld	k0, 0(k0)
+	ld	a0, 0(sp)
 	sd	a0, PC_CURTHREAD(k0)
+	daddu	sp, 8
 	ld	t0, TD_PCB(a0)
 	ld	s0, SF_REG_S0(t0)
 	ld	s1, SF_REG_S1(t0)



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