From 34eaf69ddfabc0877345228a75edecc23a79fc68 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 29 Apr 2014 18:17:17 +0100 Subject: [PATCH] [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 --- src/arch/i386/interface/pcbios/bios_nap.c | 6 +++--- 1 file 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 7f461466..1e7de756 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 );