PERFORCE change 110381 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Wed Nov 22 13:16:31 UTC 2006


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

Change 110381 by gonzo at gonzo_hq on 2006/11/22 13:11:55

	o a1 may be changed during pmap_activate call, so
	    don't rely on pre-call value, get it from stack
	    after call.

Affected files ...

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

Differences ...

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

@@ -46,9 +46,9 @@
 	lw	t3, 0(sp)
 	addu	sp, 8
 
-	lw	t1, TD_MD_PTE0(a1)		# a1 = stack_pte[0]
-	lw	t2, TD_MD_PTE1(a1)		# a2 = stack_pte[1]
-	lw	v0, TD_MD_REALSTACK(a1)		# va = md_realstack
+	lw	t1, TD_MD_PTE0(t3)		# a1 = stack_pte[0]
+	lw	t2, TD_MD_PTE1(t3)		# a2 = stack_pte[1]
+	lw	v0, TD_MD_REALSTACK(t3)		# va = md_realstack
 	li	s0, MIPS_KSSEG_START
 	blt	v0, s0, resume
 	nop


More information about the p4-projects mailing list