summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-04-03 22:51:47 +0000
committermarcel <marcel@FreeBSD.org>2006-04-03 22:51:47 +0000
commit8278e2d5fbf3b90494b259664803d77b2c5c2a96 (patch)
tree981658ebfce6b57566091fd168aa6d3b3c08789c /sys/amd64
parent8582a7eef54875ec23f28273f78836913636fa30 (diff)
downloadFreeBSD-src-8278e2d5fbf3b90494b259664803d77b2c5c2a96.zip
FreeBSD-src-8278e2d5fbf3b90494b259664803d77b2c5c2a96.tar.gz
Eliminate HAVE_STOPPEDPCBS. On ia64 the PCPU holds a pointer to the
PCB in which the context of stopped CPUs is stored. To access this PCB from KDB, we introduce a new define, called KDB_STOPPEDPCB. The definition, when present, lives in <machine/kdb.h> and abstracts where MD code saves the context. Define KDB_STOPPEDPCB on i386, amd64, alpha and sparc64 in accordance to previous code.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/include/kdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/kdb.h b/sys/amd64/include/kdb.h
index ba35914..131e40e 100644
--- a/sys/amd64/include/kdb.h
+++ b/sys/amd64/include/kdb.h
@@ -32,6 +32,8 @@
#include <machine/frame.h>
#include <machine/psl.h>
+#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid]
+
static __inline void
kdb_cpu_clear_singlestep(void)
{
OpenPOWER on IntegriCloud