Index: sys/powerpc/powerpc/machdep.c =================================================================== --- sys/powerpc/powerpc/machdep.c (revision 361555) +++ sys/powerpc/powerpc/machdep.c (working copy) @@ -405,6 +405,12 @@ #else __asm __volatile("mr 2,%0" :: "r"(&thread0)); #endif + /* + * Do some initial pcpu setup on the boot processor. + * This will be overwritten later with the correct one. + */ + pc = &__pcpu[0]; + __asm __volatile("mtsprg 0, %0" :: "r"(pc)); /* * Init mutexes, which we use heavily in PMAP