iPXE
Functions
bios_nap.c File Reference
#include <ipxe/nap.h>
#include <realmode.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static void bios_cpu_nap (void)
 Save power by halting the CPU until the next interrupt.
 PROVIDE_NAP (pcbios, cpu_nap, bios_cpu_nap)

Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static void bios_cpu_nap ( void  ) [static]

Save power by halting the CPU until the next interrupt.

Definition at line 10 of file bios_nap.c.

References __asm__().

                                  {
        __asm__ __volatile__ ( "sti\n\t"
                               "hlt\n\t"
                               "cli\n\t" );
}
PROVIDE_NAP ( pcbios  ,
cpu_nap  ,
bios_cpu_nap   
)