From 8278e2d5fbf3b90494b259664803d77b2c5c2a96 Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 3 Apr 2006 22:51:47 +0000 Subject: 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 and abstracts where MD code saves the context. Define KDB_STOPPEDPCB on i386, amd64, alpha and sparc64 in accordance to previous code. --- sys/amd64/include/kdb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/amd64') 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 #include +#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] + static __inline void kdb_cpu_clear_singlestep(void) { -- cgit v1.1