From: Michael Brown Date: Tue, 29 Apr 2014 17:17:17 +0000 (+0100) Subject: [pcbios] Do not switch to real mode to sleep the CPU X-Git-Tag: v1.20.1~1205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34eaf69ddfabc0877345228a75edecc23a79fc68;p=thirdparty%2Fipxe.git [pcbios] Do not switch to real mode to sleep the CPU 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 --- diff --git a/src/arch/i386/interface/pcbios/bios_nap.c b/src/arch/i386/interface/pcbios/bios_nap.c index 7f4614666..1e7de756b 100644 --- a/src/arch/i386/interface/pcbios/bios_nap.c +++ b/src/arch/i386/interface/pcbios/bios_nap.c @@ -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 );