Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2007 14:24:52 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 116918 for review
Message-ID:  <200703301424.l2UEOqQV094203@repoman.freebsd.org>

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

Change 116918 by gonzo@gonzo_jeeves on 2007/03/30 14:24:37

	o Set curthread before calling pmap_activate.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/swtch.S#11 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/swtch.S#11 (text+ko) ====

@@ -40,6 +40,8 @@
 ENTRY(cpu_throw)
 	subu	sp, 8
 	sw	a1, 0(sp)
+	lw	t2, pcpup
+	sw	a1, PC_CURTHREAD(t2)		# curthread = new
 	move	a0, a1
 	jal	pmap_activate
 	nop
@@ -110,7 +112,6 @@
 	.set at
 	lw	t2, pcpup
 	.set noat
-	sw	t3, PC_CURTHREAD(t2)
 	lw	t0, TD_PCB(t3)
 	sw	t0, PC_CURPCB(t2)
 	lw	s0, PCB_REG_S0(t0)



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