PERFORCE change 137796 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sat Mar 15 19:52:01 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=137796
Change 137796 by marcel at marcel_xcllnt on 2008/03/15 19:51:42
Fix compile breakage (due to commit before compile).
AP boots to the end, where we put it in an infinite loop.
Affected files ...
.. //depot/projects/powerpc/sys/powerpc/aim/mp_cpudep.c#4 edit
.. //depot/projects/powerpc/sys/powerpc/powerpc/mp_machdep.c#19 edit
Differences ...
==== //depot/projects/powerpc/sys/powerpc/aim/mp_cpudep.c#4 (text+ko) ====
@@ -168,14 +168,12 @@
trcp[1] = 0;
pcpup->pc_curthread = pcpup->pc_idlethread;
- pcpup->pc_curtcb = pcpup->pc_curthread->td_pcb;
+ pcpup->pc_curpcb = pcpup->pc_curthread->td_pcb;
sp = pcpup->pc_curpcb->pcb_sp;
trcp[0] = 0x2003;
trcp[1] = sp;
- breakpoint();
-
return (sp);
}
==== //depot/projects/powerpc/sys/powerpc/powerpc/mp_machdep.c#19 (text+ko) ====
@@ -236,7 +236,7 @@
break;
case IPI_STOP:
self = PCPU_GET(cpumask);
- savectx(PCPU_PTR(pcb));
+ savectx(PCPU_GET(curpcb));
atomic_set_int(&stopped_cpus, self);
while ((started_cpus & self) == 0)
cpu_spinwait();
More information about the p4-projects
mailing list