bios_nap.c

Go to the documentation of this file.
00001 #include <gpxe/nap.h>
00002 #include <realmode.h>
00003 
00004 FILE_LICENCE ( GPL2_OR_LATER );
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__ ( REAL_CODE ( "sti\n\t"
00012                                            "hlt\n\t"
00013                                            "cli\n\t" ) : : );
00014 }
00015 
00016 PROVIDE_NAP ( pcbios, cpu_nap, bios_cpu_nap );

Generated on Tue Apr 6 20:00:50 2010 for gPXE by  doxygen 1.5.7.1