summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/segments.h
diff options
context:
space:
mode:
authorrstone <rstone@FreeBSD.org>2011-11-07 01:53:25 +0000
committerrstone <rstone@FreeBSD.org>2011-11-07 01:53:25 +0000
commit7513eaddcff8899b95b14f2389e55c550a66db93 (patch)
treef26296a44288cd268e676e9fd59029da99e8bb90 /sys/amd64/include/segments.h
parent37aef6a48897e57c98570fd08897440089e01d73 (diff)
downloadFreeBSD-src-7513eaddcff8899b95b14f2389e55c550a66db93.zip
FreeBSD-src-7513eaddcff8899b95b14f2389e55c550a66db93.tar.gz
Fix the DTrace pid return trap interrupt vector. Previously we were using
31, but that vector is reserved. Without this fix, running dtrace -p <pid> would either cause the target process to crash or the kernel to page fault. Obtained from: rpaulo MFC after: 3days
Diffstat (limited to 'sys/amd64/include/segments.h')
-rw-r--r--sys/amd64/include/segments.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h
index 22dc95a..2796511 100644
--- a/sys/amd64/include/segments.h
+++ b/sys/amd64/include/segments.h
@@ -214,7 +214,7 @@ struct region_descriptor {
#define IDT_XF 19 /* #XF: SIMD Floating-Point Exception */
#define IDT_IO_INTS NRSVIDT /* Base of IDT entries for I/O interrupts. */
#define IDT_SYSCALL 0x80 /* System Call Interrupt Vector */
-#define IDT_DTRACE_RET 0x92 /* DTrace pid provider Interrupt Vector */
+#define IDT_DTRACE_RET 0x20 /* DTrace pid provider Interrupt Vector */
/*
* Entries in the Global Descriptor Table (GDT)
OpenPOWER on IntegriCloud