From owner-svn-src-head@FreeBSD.ORG Mon Jul 29 08:07:36 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 13DB1AFE; Mon, 29 Jul 2013 08:07:36 +0000 (UTC) (envelope-from cognet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 01575242C; Mon, 29 Jul 2013 08:07:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6T87ZKw098944; Mon, 29 Jul 2013 08:07:35 GMT (envelope-from cognet@svn.freebsd.org) Received: (from cognet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6T87Ztx098940; Mon, 29 Jul 2013 08:07:35 GMT (envelope-from cognet@svn.freebsd.org) Message-Id: <201307290807.r6T87Ztx098940@svn.freebsd.org> From: Olivier Houchard Date: Mon, 29 Jul 2013 08:07:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253762 - head/sys/arm/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 08:07:36 -0000 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 #include +#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_ */