ia64/xen-unstable

changeset 4730:2621a06f6d37

bitkeeper revision 1.1389.1.26 (42764ebcQUGB5SU0NuOL0gHMTOa--A)

Fix int3 handling in cdb. They're harmless.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon May 02 16:01:00 2005 +0000 (2005-05-02)
parents 4a4f2e086608
children 1f679a34da36
files xen/include/asm-x86/debugger.h
line diff
     1.1 --- a/xen/include/asm-x86/debugger.h	Mon May 02 13:50:40 2005 +0000
     1.2 +++ b/xen/include/asm-x86/debugger.h	Mon May 02 16:01:00 2005 +0000
     1.3 @@ -42,7 +42,14 @@
     1.4  
     1.5  extern int __trap_to_cdb(struct cpu_user_regs *r);
     1.6  #define debugger_trap_entry(_v, _r) (0)
     1.7 -#define debugger_trap_fatal(_v, _r) __trap_to_cdb(_r)
     1.8 +
     1.9 +static inline int debugger_trap_fatal(
    1.10 +    unsigned int vector, struct cpu_user_regs *regs)
    1.11 +{
    1.12 +    (void)__trap_to_cdb(regs);
    1.13 +    return (vector == TRAP_int3); /* int3 is harmless */
    1.14 +}
    1.15 +
    1.16  /* Int3 is a trivial way to gather cpu_user_regs context. */
    1.17  #define debugger_trap_immediate() __asm__ __volatile__ ( "int3" );
    1.18