]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[pcbios] Do not switch to real mode to sleep the CPU
authorMichael Brown <mcb30@ipxe.org>
Tue, 29 Apr 2014 17:17:17 +0000 (18:17 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 29 Apr 2014 17:24:10 +0000 (18:24 +0100)
Now that we can handle interrupts while in protected mode, there is no
need to switch to real mode just to halt the CPU.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/pcbios/bios_nap.c

index 7f4614666b43af30a2dea2087c28f700fdb6702b..1e7de756be05945730dba7df1a22e4cf416ab951 100644 (file)
@@ -8,9 +8,9 @@ FILE_LICENCE ( GPL2_OR_LATER );
  *
  */
 static void bios_cpu_nap ( void ) {
-       __asm__ __volatile__ ( REAL_CODE ( "sti\n\t"
-                                          "hlt\n\t"
-                                          "cli\n\t" ) : : );
+       __asm__ __volatile__ ( "sti\n\t"
+                              "hlt\n\t"
+                              "cli\n\t" );
 }
 
 PROVIDE_NAP ( pcbios, cpu_nap, bios_cpu_nap );