ia64/xen-unstable

changeset 1959:18624243ddc8

bitkeeper revision 1.1098.1.3 (4107d2b2JytQUAMvbL-AaRYEGRN4HQ)

Replace the panic key with a debug key.
author sos22@donkeykong.cl.cam.ac.uk
date Wed Jul 28 16:22:10 2004 +0000 (2004-07-28)
parents 049ca85b7b73
children 72e41275fd36
files xen/common/keyhandler.c
line diff
     1.1 --- a/xen/common/keyhandler.c	Wed Jul 28 16:18:34 2004 +0000
     1.2 +++ b/xen/common/keyhandler.c	Wed Jul 28 16:22:10 2004 +0000
     1.3 @@ -115,9 +115,10 @@ extern void perfc_reset(unsigned char ke
     1.4                          struct pt_regs *regs);
     1.5  #endif
     1.6  
     1.7 -void do_panic_key(unsigned char key, void *dev_id, struct pt_regs *regs)
     1.8 +void do_debug_key(unsigned char key, void *dev_id, struct pt_regs *regs)
     1.9  {
    1.10 -    panic("Panic requested from console");
    1.11 +    extern void trap_to_xendbg(void);
    1.12 +    trap_to_xendbg();
    1.13  }
    1.14  
    1.15  void initialize_keytable(void)
    1.16 @@ -133,5 +134,5 @@ void initialize_keytable(void)
    1.17      add_key_handler('p', perfc_printall, "print performance counters"); 
    1.18      add_key_handler('P', perfc_reset,    "reset performance counters"); 
    1.19  #endif
    1.20 -    add_key_handler('%', do_panic_key,   "Panic Xen");
    1.21 +    add_key_handler('%', do_debug_key,   "Trap to xendbg");
    1.22  }