2 * vm86.h: vm86 emulator definitions.
4 * Leendert van Doorn, leendert@watson.ibm.com
5 * Copyright (c) 2005, International Business Machines Corporation.
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18 * Place - Suite 330, Boston, MA 02111-1307 USA.
27 #include "vmx_assist.h"
32 unsigned edi, esi, ebp, esp, ebx, edx, ecx, eax;
33 unsigned trapno, errno;
34 unsigned eip, cs, eflags, uesp, uss;
35 unsigned ves, vds, vfs, vgs;
40 VM86_REAL_TO_PROTECTED,
41 VM86_PROTECTED_TO_REAL,
46 #define TRACE(a) trace a
51 extern enum vm86_mode prevmode, mode;
52 extern struct vmx_assist_context oldctx;
54 extern void emulate(struct regs *);
55 extern void dump_regs(struct regs *);
56 extern void trace(struct regs *, int, char *, ...);
58 extern void set_mode(struct regs *, enum vm86_mode);
59 extern void switch_to_real_mode(void);
60 extern void switch_to_protected_mode(void);
62 #endif /* __ASSEMBLY__ */
64 #endif /* __VM86_H__ */