PERFORCE change 116918 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Fri Mar 30 14:24:53 UTC 2007


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

Change 116918 by gonzo at 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)


More information about the p4-projects mailing list