bios_nap.c File Reference

#include <gpxe/nap.h>
#include <realmode.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
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   ) 

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__(), and REAL_CODE.

00010                                   {
00011         __asm__ __volatile__ ( REAL_CODE ( "sti\n\t"
00012                                            "hlt\n\t"
00013                                            "cli\n\t" ) : : );
00014 }

PROVIDE_NAP ( pcbios  ,
cpu_nap  ,
bios_cpu_nap   
)


Generated on Tue Apr 6 20:01:13 2010 for gPXE by  doxygen 1.5.7.1