aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/pcpu.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2013-05-21 11:24:32 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2013-05-21 11:24:32 +0000
commit4f493a25f48e7e045b6d1a852f089f2a7268738e (patch)
treed5ea9e63d608b4413df87835f72df81b024daad1 /sys/amd64/include/pcpu.h
parentea38ca6ea51f608b9f55d8be8a858dbc8b9bfa35 (diff)
downloadsrc-4f493a25f48e7e045b6d1a852f089f2a7268738e.tar.gz
src-4f493a25f48e7e045b6d1a852f089f2a7268738e.zip
Fix the hardware watchpoints on SMP amd64. Load the updated %dr
registers also on other CPUs, besides the CPU which happens to execute the ddb. The debugging registers are stored in the pcpu area, together with the command which is executed by the IPI stop handler upon resume. Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=250851
Diffstat (limited to 'sys/amd64/include/pcpu.h')
-rw-r--r--sys/amd64/include/pcpu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h
index bb7d33950535..ba4c61870797 100644
--- a/sys/amd64/include/pcpu.h
+++ b/sys/amd64/include/pcpu.h
@@ -78,9 +78,14 @@
struct system_segment_descriptor *pc_tss; \
u_int pc_cmci_mask /* MCx banks for CMCI */ \
PCPU_XEN_FIELDS; \
- char __pad[293] /* be divisor of PAGE_SIZE \
+ uint64_t pc_dbreg[16]; /* ddb debugging regs */ \
+ int pc_dbreg_cmd; /* ddb debugging reg cmd */ \
+ char __pad[161] /* be divisor of PAGE_SIZE \
after cache alignment */
+#define PC_DBREG_CMD_NONE 0
+#define PC_DBREG_CMD_LOAD 1
+
#ifdef _KERNEL
#ifdef lint