From 7110d40fbf27b1fafe70e3cd560f53ca7be094a5 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 3 Nov 2009 14:59:43 +0000 Subject: x86emu: Add support for the following opcodes: * SMSW * INVD/WBINVD * RDMSR/WRMSR * CPUID The implementation is kept very simple (mostly dummies) but it should get us successfully through the Poulsbo VGA OPROM code in order to determine further requirements. Also, fix up a lot of warnings (mostly about missing prototypes for functions that should be static anyways) This version adds a break in smsw that was missing in the patch that was sent to the list. Signed-off-by: Stefan Reinauer Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4906 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/x86emu/include/x86emu/x86emu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/x86emu/include') diff --git a/util/x86emu/include/x86emu/x86emu.h b/util/x86emu/include/x86emu/x86emu.h index 823f49772b..04381627c7 100644 --- a/util/x86emu/include/x86emu/x86emu.h +++ b/util/x86emu/include/x86emu/x86emu.h @@ -44,6 +44,7 @@ /* FIXME: redefine printk for the moment */ #ifdef CONFIG_COREBOOT_V2 +#include #include #undef printk #define printk(x...) do_printk(BIOS_DEBUG, x) @@ -160,7 +161,7 @@ void X86EMU_setupPioFuncs(X86EMU_pioFuncs *funcs); void X86EMU_setupIntrFuncs(X86EMU_intrFuncs funcs[]); void X86EMU_prepareForInt(int num); -//void X86EMU_setMemBase(void *base, size_t size); +void X86EMU_setMemBase(void *base, size_t size); /* decode.c */ -- cgit v1.2.3