debuggers.hg

changeset 20678:40a598cb0e91

Disable watchdog in dump_registers

Avoids triggering watchdog if serial port output is slow.

Signed-off-by: Andrew Lyon <andrew.lyon@gmail.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Dec 14 07:57:23 2009 +0000 (2009-12-14)
parents 7162eff6d085
children 4bb3933ab001
files xen/common/keyhandler.c
line diff
     1.1 --- a/xen/common/keyhandler.c	Mon Dec 14 07:56:21 2009 +0000
     1.2 +++ b/xen/common/keyhandler.c	Mon Dec 14 07:57:23 2009 +0000
     1.3 @@ -87,6 +87,7 @@ static void dump_registers(unsigned char
     1.4      unsigned int cpu;
     1.5  
     1.6      /* We want to get everything out that we possibly can. */
     1.7 +    watchdog_disable();
     1.8      console_start_sync();
     1.9  
    1.10      printk("'%c' pressed -> dumping registers\n", key);
    1.11 @@ -106,6 +107,7 @@ static void dump_registers(unsigned char
    1.12      printk("\n");
    1.13  
    1.14      console_end_sync();
    1.15 +    watchdog_enable();
    1.16  }
    1.17  
    1.18  static struct keyhandler dump_registers_keyhandler = {