From d6fb0861c55f062797c8706f484bd47ae0f94568 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 30 Mar 2010 16:06:39 -0700 Subject: core: move idle handling into protected mode Do the actual idling in protected mode. This both allows PM code a more efficient interface, but also handles bugs in HVM implementations which don't handle HLT in real mode. Signed-off-by: H. Peter Anvin --- core/include/core.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'core/include') diff --git a/core/include/core.h b/core/include/core.h index f03da813..eb7bfcdb 100644 --- a/core/include/core.h +++ b/core/include/core.h @@ -21,12 +21,14 @@ extern void getlinsec(void); /* getc.inc */ extern void core_open(void); -/* idle.inc */ -extern void (*idle_hook_func)(void); - /* hello.c */ extern void myputs(const char*); +/* idle.c */ +extern int (*idle_hook_func)(void); +extern void __idle(void); +extern void reset_idle(void); + /* mem/malloc.c, mem/free.c, mem/init.c */ extern void *malloc(size_t); extern void *lmalloc(size_t); -- cgit v1.2.1