PERFORCE change 28594 for review

Marcel Moolenaar marcel at FreeBSD.org
Tue Apr 8 19:00:39 PDT 2003


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

Change 28594 by marcel at marcel_nfs on 2003/04/08 19:00:11

	Don't forget to set pc_curthread.

Affected files ...

.. //depot/projects/ia64_epc/sys/ia64/ia64/machdep.c#8 edit

Differences ...

==== //depot/projects/ia64_epc/sys/ia64/ia64/machdep.c#8 (text+ko) ====

@@ -218,6 +218,7 @@
 	if (!savectx(oldpcb)) {
 		newpcb = new->td_pcb;
 		pmap_install(newpcb->pcb_current_pmap);
+		PCPU_SET(curthread, new);
 		restorectx(newpcb);
 	}
 }
@@ -229,6 +230,7 @@
 
 	newpcb = new->td_pcb;
 	pmap_install(newpcb->pcb_current_pmap);
+	PCPU_SET(curthread, new);
 	restorectx(newpcb);
 	/* We should not get here. */
 	panic("cpu_throw: restorectx() returned");


More information about the p4-projects mailing list