summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2014-04-29 19:17:17 +0200
committerMichael Brown2014-04-29 19:24:10 +0200
commit34eaf69ddfabc0877345228a75edecc23a79fc68 (patch)
treeb4752a2ae2ddc3b0d9239b5ea95d880ba9a73358
parent[pcbios] Do not switch to real mode to check for timer interrupt (diff)
downloadipxe-34eaf69ddfabc0877345228a75edecc23a79fc68.tar.gz
ipxe-34eaf69ddfabc0877345228a75edecc23a79fc68.tar.xz
ipxe-34eaf69ddfabc0877345228a75edecc23a79fc68.zip
[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 <mcb30@ipxe.org>
-rw-r--r--src/arch/i386/interface/pcbios/bios_nap.c6
1 files changed, 3 insertions, 3 deletions
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 );