Commit 4e7b8f4a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

kernel32: Get rid of DOSMEM_AllocSelector.

parent 4b418d6f
......@@ -254,19 +254,3 @@ LPVOID DOSMEM_MapRealToLinear(DWORD x)
TRACE_(selector)("(0x%08lx) returns %p.\n", x, lin );
return lin;
}
/***********************************************************************
* DOSMEM_AllocSelector
*
* Allocates a protected mode selector for a realmode segment.
*/
WORD DOSMEM_AllocSelector(WORD realsel)
{
HMODULE16 hModule = GetModuleHandle16("KERNEL");
WORD sel;
sel=GLOBAL_CreateBlock( GMEM_FIXED, DOSMEM_dosmem+realsel*16, DOSMEM_64KB,
hModule, WINE_LDT_FLAGS_DATA );
TRACE_(selector)("(0x%04x) returns 0x%04x.\n", realsel,sel);
return sel;
}
......@@ -1255,8 +1255,3 @@
# Init code
@ cdecl __wine_kernel_init()
################################################################
# Wine dll separation hacks, these will go away, don't use them
#
@ cdecl DOSMEM_AllocSelector(long)
......@@ -110,7 +110,6 @@ extern WORD DOSMEM_BiosSysSeg;
/* dosmem.c */
extern BOOL DOSMEM_Init(void);
extern WORD DOSMEM_AllocSelector(WORD);
extern LPVOID DOSMEM_MapRealToLinear(DWORD); /* real-mode to linear */
extern LPVOID DOSMEM_MapDosToLinear(UINT); /* linear DOS to Wine */
extern UINT DOSMEM_MapLinearToDos(LPVOID); /* linear Wine to DOS */
......
......@@ -913,7 +913,9 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
case 0xe000: entryPoint = 190; break; /* __E000H */
case 0xf000: entryPoint = 194; break; /* __F000H */
default:
SET_AX( context, DOSMEM_AllocSelector(BX_reg(context)) );
FIXME("Real mode segment (%x) to descriptor: no longer supported\n",
BX_reg(context));
SET_CFLAG( context );
break;
}
if (entryPoint)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment