Displaying 1 result from an estimated 1 matches for "__machine_halt".
2007 Sep 08
4
[PATCH] Unified shutdown code
...ALT 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)) __machine_halt(void *unused)
-{
- for ( ; ; )
- __asm__ __volatile__ ( "hlt" );
-}
-
-void machine_halt(void)
-{
- watchdog_disable();
- console_start_sync();
- smp_call_function(__machine_halt, NULL, 1, 0);
- __machine_halt(NULL);
}
#ifdef __i386__
@@ -197,32 +187,71 @@ static...