search for: teardown_type_halt

Displaying 1 result from an estimated 1 matches for "teardown_type_halt".

2007 Sep 08
4
[PATCH] Unified shutdown code
...-r a85c4081738a xen/arch/x86/shutdown.c --- a/xen/arch/x86/shutdown.c Fri Sep 07 19:54:29 2007 +0100 +++ b/xen/arch/x86/shutdown.c Fri Sep 07 17:37:01 2007 -0700 @@ -29,6 +29,10 @@ static long no_idt[2]; static long no_idt[2]; static int reboot_mode; +#define TEARDOWN_TYPE_REBOOT 0 +#define TEARDOWN_TYPE_HALT 1 +#define TEARDOWN_TYPE_EARLY 2 + static inline void kb_wait(void) { int i; @@ -36,20 +40,6 @@ static inline void kb_wait(void) for ( i = 0; i < 0x10000; i++ ) if ( (inb_p(0x64) & 0x02) == 0 ) break; -} - -static void __attribute__((noreturn)) __m...