Commit 1575c940 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

- delayed initialisation of BIOS and SYSTEM information until someone

actually needs it - now using some manifest constants to make code clearer
parent 8a7960c4
......@@ -1170,7 +1170,7 @@
@ cdecl DOSMEM_Available()
@ cdecl DOSMEM_FreeBlock(ptr)
@ cdecl DOSMEM_GetBlock(long ptr)
@ cdecl DOSMEM_Init(long)
@ cdecl DOSMEM_InitDosMem(long)
@ cdecl DOSMEM_ResizeBlock(ptr long long)
@ cdecl LOCAL_Alloc(long long long)
@ cdecl LOCAL_Compact(long long long)
......
......@@ -121,7 +121,7 @@ static BOOL process_attach(void)
if (!WOWTHUNK_Init()) return FALSE;
/* Initialize DOS memory */
if (!DOSMEM_Init(0)) return FALSE;
if (!DOSMEM_Init()) return FALSE;
/* Setup computer name */
COMPUTERNAME_Init();
......
......@@ -968,7 +968,7 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
/* check if Win16 app wants to access lower 64K of DOS memory */
if (base < 0x10000 && DOSVM_IsWin16())
DOSMEM_Init(TRUE);
DOSMEM_InitDosMem();
SetSelectorBase( sel, base );
}
......
......@@ -193,7 +193,7 @@ static BOOL MZ_InitMemory(void)
{
/* initialize the memory */
TRACE("Initializing DOS memory structures\n");
DOSMEM_Init(TRUE);
DOSMEM_InitDosMem();
DOSDEV_InstallDOSDevices();
return TRUE;
......
......@@ -93,7 +93,8 @@ extern WORD DOSMEM_BiosDataSeg;
extern WORD DOSMEM_BiosSysSeg;
/* msdos/dosmem.c */
extern BOOL DOSMEM_Init(BOOL);
extern BOOL DOSMEM_Init(void);
extern BOOL DOSMEM_InitDosMem(void);
extern void DOSMEM_Tick(WORD timer);
extern WORD DOSMEM_AllocSelector(WORD);
extern LPVOID DOSMEM_GetBlock(UINT size, WORD* p);
......
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