PERFORCE change 48877 for review

Juli Mallett jmallett at FreeBSD.org
Sat Mar 13 00:38:12 PST 2004


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

Change 48877 by jmallett at 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)


More information about the p4-projects mailing list