kernel32: Get rid of DOSMEM_AllocSelector.

This commit is contained in:
Eric Pouech 2005-12-12 13:02:35 +01:00 committed by Alexandre Julliard
parent 4b418d6f2b
commit 4e7b8f4a7b
4 changed files with 3 additions and 23 deletions

View file

@ -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;
}

View file

@ -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)

View file

@ -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 */

View file

@ -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)