Index: head/sys/powerpc/include/kdb.h =================================================================== --- head/sys/powerpc/include/kdb.h +++ head/sys/powerpc/include/kdb.h @@ -40,6 +40,8 @@ void kdb_cpu_clear_singlestep(void); void kdb_cpu_set_singlestep(void); +#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] + static __inline void kdb_cpu_sync_icache(unsigned char *addr, size_t size) { Index: head/sys/powerpc/include/smp.h =================================================================== --- head/sys/powerpc/include/smp.h +++ head/sys/powerpc/include/smp.h @@ -42,6 +42,7 @@ #ifndef LOCORE +#include #include void ipi_all_but_self(int ipi); @@ -58,6 +59,8 @@ uintptr_t cpudep_ap_bootstrap(void); void cpudep_ap_setup(void); void machdep_ap_bootstrap(void); + +extern struct pcb stoppcbs[]; #endif /* !LOCORE */ #endif /* _KERNEL */