blob: 12bb5699c53819039fff1834ff89499d1e6501b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <realmode.h>
#include <bios.h>
/**************************************************************************
* Save power by halting the CPU until the next interrupt
**************************************************************************/
void cpu_nap ( void ) {
__asm__ __volatile__ ( REAL_CODE ( "sti\n\t"
"hlt\n\t"
"cli\n\t" ) : : );
}
|