summaryrefslogtreecommitdiffstats
path: root/util/x86emu/biosemu.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2009-05-29 13:09:57 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2009-05-29 13:09:57 +0000
commit881db0ca0c8dda16d289b21b1d107b330ea556f4 (patch)
tree20dc13dd2d3b6e8d8ab3df0e517ba868ffad3e2a /util/x86emu/biosemu.c
parent50b961ea7ad611e8fc05e057b0a2bd36d2ef4ec6 (diff)
downloadcoreboot-881db0ca0c8dda16d289b21b1d107b330ea556f4.tar.gz
coreboot-881db0ca0c8dda16d289b21b1d107b330ea556f4.tar.bz2
coreboot-881db0ca0c8dda16d289b21b1d107b330ea556f4.zip
Part II - svn externals need to be committed separately
drop most of the crappy vm86 code and replace it with a rewritten version that has all assembler in a .S file and all C code in a .c file. Also, remove requirement to move around between GDTs. This version includes the suggestions from Peter to clean up CR0 manipulation and to guard critical code paths by cli/sti. Tested and working on my hardware. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1167 f3766cd6-281f-0410-b1cd-43a5c92072e9
Diffstat (limited to 'util/x86emu/biosemu.c')
-rw-r--r--util/x86emu/biosemu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/x86emu/biosemu.c b/util/x86emu/biosemu.c
index b924092e9918..9b6dcb472ec1 100644
--- a/util/x86emu/biosemu.c
+++ b/util/x86emu/biosemu.c
@@ -213,6 +213,7 @@ void do_int(int num)
ret = run_bios_int(num);
}
+
#if 0
#define SYS_BIOS 0xf0000
/*
@@ -386,7 +387,7 @@ void run_bios(struct device * dev, unsigned long addr)
pushw(X86_SS);
pushw(X86_SP + 2);
-#ifndef NO_TRACE
+#ifdef DEBUG
//X86EMU_trace_on();
#endif