]> err.no Git - linux-2.6/blobdiff - arch/i386/mach-voyager/voyager_basic.c
[PATCH] x86: more asm cleanups
[linux-2.6] / arch / i386 / mach-voyager / voyager_basic.c
index b3eda46e0fe9d4e1a02cfc8e90c9e29b7abd1e94..cc69875d979b9445b3ebcc0549906656ee3f2767 100644 (file)
@@ -234,10 +234,9 @@ voyager_power_off(void)
 #endif
        }
        /* and wait for it to happen */
-       for(;;) {
-               __asm("cli");
-               __asm("hlt");
-       }
+       local_irq_disable();
+       for(;;)
+               halt();
 }
 
 /* copied from process.c */
@@ -251,6 +250,12 @@ kb_wait(void)
                        break;
 }
 
+void
+machine_shutdown(void)
+{
+       /* Architecture specific shutdown needed before a kexec */
+}
+
 void
 machine_restart(char *cmd)
 {
@@ -272,10 +277,16 @@ machine_restart(char *cmd)
                outb(basebd | 0x08, VOYAGER_MC_SETUP);
                outb(0x02, catbase + 0x21);
        }
-       for(;;) {
-               asm("cli");
-               asm("hlt");
-       }
+       local_irq_disable();
+       for(;;)
+               halt();
+}
+
+void
+machine_emergency_restart(void)
+{
+       /*for now, just hook this to a warm restart */
+       machine_restart(NULL);
 }
 
 void