iPXE
bios_nap.c
Go to the documentation of this file.
00001 #include <ipxe/nap.h>
00002 #include <realmode.h>
00003 
00004 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00005 
00006 /**
00007  * Save power by halting the CPU until the next interrupt
00008  *
00009  */
00010 static void bios_cpu_nap ( void ) {
00011         __asm__ __volatile__ ( "sti\n\t"
00012                                "hlt\n\t"
00013                                "cli\n\t" );
00014 }
00015 
00016 PROVIDE_NAP ( pcbios, cpu_nap, bios_cpu_nap );