Change the V86BASE macro to call DOSMEM_MemoryBase() instead of using

the ugly Dr7 hack.
This commit is contained in:
Ove Kaaven 2000-07-23 13:36:41 +00:00 committed by Alexandre Julliard
parent eef1fb8f41
commit 9b2060afab
4 changed files with 1 additions and 4 deletions

View File

@ -378,7 +378,6 @@ static void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext )
#else
context->SegGs = __get_gs();
#endif
if (ISV86(context)) V86BASE(context) = (DWORD)DOSMEM_MemoryBase(0);
}

View File

@ -714,7 +714,7 @@ typedef HANDLE *PHANDLE;
#define RESET_ZFLAG(context) (EFL_reg(context) &= ~0x0040)
#define ISV86(context) (EFL_reg(context) & 0x00020000)
#define V86BASE(context) ((context)->Dr7) /* ugly */
#define V86BASE(context) DOSMEM_MemoryBase(0)
/* Macros to retrieve the current context */

View File

@ -250,7 +250,6 @@ static int DOSVM_Process( LPDOSTASK lpDosTask, int fn, int sig,
if (ret) return 0;
ret=0;
}
(void*)V86BASE(&context)=lpDosTask->img;
#ifdef TRY_PICRETURN
if (VM86->vm86plus.force_return_for_pic) {
SET_PEND(&context);

View File

@ -157,7 +157,6 @@ static void INT_GetRealModeContext( REALMODECALL *call, CONTEXT86 *context )
FS_reg(context) = call->fs;
GS_reg(context) = call->gs;
SS_reg(context) = call->ss;
V86BASE(context) = (DWORD) DOSMEM_MemoryBase(0);
}