mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
kernel32: Get rid of DOSMEM_AllocSelector.
This commit is contained in:
parent
4b418d6f2b
commit
4e7b8f4a7b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user