repo.or.cz
/
gpxe.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[tcp] Allow out-of-order receive queue to be discarded
[gpxe.git]
/
src
/
arch
/
i386
/
interface
/
pcbios
/
bios_nap.c
blob
e38cac7a8253a543ee61eeb93edcc2e97c0ae134
1
#include <gpxe/nap.h>
2
#include <realmode.h>
3
4
FILE_LICENCE
(
GPL2_OR_LATER
);
5
6
/**
7
* Save power by halting the CPU until the next interrupt
8
*
9
*/
10
static void
bios_cpu_nap
(
void
) {
11
__asm__
__volatile__
(
REAL_CODE
(
"sti
\n\t
"
12
"hlt
\n\t
"
13
"cli
\n\t
"
) : : );
14
}
15
16
PROVIDE_NAP
(
pcbios
,
cpu_nap
,
bios_cpu_nap
);