Pārlūkot izejas kodu

[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>
tags/v1.20.1
Michael Brown 10 gadus atpakaļ
vecāks
revīzija
34eaf69ddf
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3
    3
      src/arch/i386/interface/pcbios/bios_nap.c

+ 3
- 3
src/arch/i386/interface/pcbios/bios_nap.c Parādīt failu

@@ -8,9 +8,9 @@ FILE_LICENCE ( GPL2_OR_LATER );
8 8
  *
9 9
  */
10 10
 static void bios_cpu_nap ( void ) {
11
-	__asm__ __volatile__ ( REAL_CODE ( "sti\n\t"
12
-					   "hlt\n\t"
13
-					   "cli\n\t" ) : : );
11
+	__asm__ __volatile__ ( "sti\n\t"
12
+			       "hlt\n\t"
13
+			       "cli\n\t" );
14 14
 }
15 15
 
16 16
 PROVIDE_NAP ( pcbios, cpu_nap, bios_cpu_nap );

Notiek ielāde…
Atcelt
Saglabāt