Define KDB_STOPPEDPCB, so that we can access the backtraces of threads running

on other cores.
This commit is contained in:
Olivier Houchard 2013-07-29 08:07:35 +00:00
parent 0dde6c757f
commit 36bc03ee96
2 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,8 @@
#include <machine/psl.h>
#include <machine/cpufunc.h>
#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid]
static __inline void
kdb_cpu_clear_singlestep(void)
{

View File

@ -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_ */