PERFORCE change 117140 for review
Robert Watson
rwatson at FreeBSD.org
Mon Apr 2 14:30:43 UTC 2007
On Mon, 2 Apr 2007, John Baldwin wrote:
>> @@ -40,6 +40,7 @@
>> int pc_inside_intr; \
>> struct pmap *pc_curpmap; /* current pmap */ \
>> struct thread *pc_fputhread; /* current fpu user */ \
>> + int pc_bsp:1; \
>
> FYI, other places in MI code assume that CPU 0 (pc_cpuid) is the BSP.
I realized the hard way, the other day, that the boot thread itself can
migrate to another CPU during sysinit processing, once SMP is kicked off. No
more KASSERT(curcpu == 0, ()) for me. :-)
Robert N M Watson
Computer Laboratory
University of Cambridge
More information about the p4-projects
mailing list