ia64/xen-unstable

changeset 2980:43bbf6841c7f

bitkeeper revision 1.1159.173.1 (4198cc1etdf5hNRh765kjOv76JOjog)

Run "reboot machine" keyhandler from interrupt context.
author cl349@freefall.cl.cam.ac.uk
date Mon Nov 15 15:32:46 2004 +0000 (2004-11-15)
parents fd10b3d1ab9a
children b49a4a760280
files xen/common/keyhandler.c
line diff
     1.1 --- a/xen/common/keyhandler.c	Mon Nov 15 10:56:35 2004 +0000
     1.2 +++ b/xen/common/keyhandler.c	Mon Nov 15 15:32:46 2004 +0000
     1.3 @@ -89,7 +89,7 @@ static void dump_registers(unsigned char
     1.4      show_registers(regs); 
     1.5  }
     1.6  
     1.7 -static void halt_machine(unsigned char key)
     1.8 +static void halt_machine(unsigned char key, struct xen_regs *regs)
     1.9  {
    1.10      printk("'%c' pressed -> rebooting machine\n", key); 
    1.11      machine_restart(NULL); 
    1.12 @@ -169,7 +169,7 @@ void initialize_keytable(void)
    1.13          'q', do_task_queues, "dump task queues + guest state");
    1.14      register_keyhandler(
    1.15          'r', dump_runq,      "dump run queues");
    1.16 -    register_keyhandler(
    1.17 +    register_irq_keyhandler(
    1.18          'R', halt_machine,   "reboot machine"); 
    1.19  
    1.20  #ifndef NDEBUG