Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2013 08:07:35 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253762 - head/sys/arm/include
Message-ID:  <201307290807.r6T87Ztx098940@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cognet
Date: Mon Jul 29 08:07:35 2013
New Revision: 253762
URL: http://svnweb.freebsd.org/changeset/base/253762

Log:
  Define KDB_STOPPEDPCB, so that we can access the backtraces of threads running
  on other cores.

Modified:
  head/sys/arm/include/kdb.h
  head/sys/arm/include/smp.h

Modified: head/sys/arm/include/kdb.h
==============================================================================
--- head/sys/arm/include/kdb.h	Mon Jul 29 06:57:45 2013	(r253761)
+++ head/sys/arm/include/kdb.h	Mon Jul 29 08:07:35 2013	(r253762)
@@ -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)
 {

Modified: head/sys/arm/include/smp.h
==============================================================================
--- head/sys/arm/include/smp.h	Mon Jul 29 06:57:45 2013	(r253761)
+++ head/sys/arm/include/smp.h	Mon Jul 29 08:07:35 2013	(r253762)
@@ -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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307290807.r6T87Ztx098940>