#include <gpxe/nap.h>
#include <gpxe/efi/efi.h>
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| static void | efix86_cpu_nap (void) |
| Sleep until next interrupt. | |
| PROVIDE_NAP (efix86, cpu_nap, efix86_cpu_nap) | |
Definition in file efix86_nap.c.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| static void efix86_cpu_nap | ( | void | ) | [static] |
Sleep until next interrupt.
Definition at line 34 of file efix86_nap.c.
References __asm__().
00034 { 00035 /* 00036 * I can't find any EFI API that allows us to put the CPU to 00037 * sleep. The CpuSleep() function is defined in CpuLib.h, but 00038 * isn't part of any exposed protocol so we have no way to 00039 * call it. 00040 * 00041 * The EFI shell doesn't seem to bother sleeping the CPU; it 00042 * just sits there idly burning power. 00043 * 00044 */ 00045 __asm__ __volatile__ ( "hlt" ); 00046 }
| PROVIDE_NAP | ( | efix86 | , | |
| cpu_nap | , | |||
| efix86_cpu_nap | ||||
| ) |
1.5.7.1