aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/debugger.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-02 16:01:00 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-02 16:01:00 +0000
commit12b6d1516680421ecd512cb4651aedbaa2db7968 (patch)
tree392195fb656008bd60c119d26a919226324f90bb /xen/include/asm-x86/debugger.h
parentc043f762e14b35a8a128427f941f78af78c1327a (diff)
downloadxen-12b6d1516680421ecd512cb4651aedbaa2db7968.tar.gz
xen-12b6d1516680421ecd512cb4651aedbaa2db7968.tar.bz2
xen-12b6d1516680421ecd512cb4651aedbaa2db7968.zip
bitkeeper revision 1.1389.1.26 (42764ebcQUGB5SU0NuOL0gHMTOa--A)
Fix int3 handling in cdb. They're harmless. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/debugger.h')
-rw-r--r--xen/include/asm-x86/debugger.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/xen/include/asm-x86/debugger.h b/xen/include/asm-x86/debugger.h
index 877aa3b5e8..5b7af3badc 100644
--- a/xen/include/asm-x86/debugger.h
+++ b/xen/include/asm-x86/debugger.h
@@ -42,7 +42,14 @@
extern int __trap_to_cdb(struct cpu_user_regs *r);
#define debugger_trap_entry(_v, _r) (0)
-#define debugger_trap_fatal(_v, _r) __trap_to_cdb(_r)
+
+static inline int debugger_trap_fatal(
+ unsigned int vector, struct cpu_user_regs *regs)
+{
+ (void)__trap_to_cdb(regs);
+ return (vector == TRAP_int3); /* int3 is harmless */
+}
+
/* Int3 is a trivial way to gather cpu_user_regs context. */
#define debugger_trap_immediate() __asm__ __volatile__ ( "int3" );