From 36bc03ee9609a8cef067dd36a6a50455431ec4b5 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Mon, 29 Jul 2013 08:07:35 +0000 Subject: [PATCH] Define KDB_STOPPEDPCB, so that we can access the backtraces of threads running on other cores. --- sys/arm/include/kdb.h | 2 ++ sys/arm/include/smp.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/sys/arm/include/kdb.h b/sys/arm/include/kdb.h index 3195945207f0..2f0b0877e28a 100644 --- a/sys/arm/include/kdb.h +++ b/sys/arm/include/kdb.h @@ -33,6 +33,8 @@ #include #include +#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] + static __inline void kdb_cpu_clear_singlestep(void) { diff --git a/sys/arm/include/smp.h b/sys/arm/include/smp.h index 3cf3cc184255..a55a70b04c7c 100644 --- a/sys/arm/include/smp.h +++ b/sys/arm/include/smp.h @@ -32,4 +32,7 @@ void platform_mp_init_secondary(void); void platform_ipi_send(cpuset_t cpus, u_int ipi); +/* global data in mp_machdep.c */ +extern struct pcb stoppcbs[]; + #endif /* !_MACHINE_SMP_H_ */