Ignore:
Timestamp:
Jul 21, 2002, 11:17:28 AM (23 years ago)
Author:
sandervl
Message:

Use shared memory in high region (> 512MB) if available + Interface changes for shared memory allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/initkernel32.cpp

    r8880 r8898  
    1 /* $Id: initkernel32.cpp,v 1.21 2002-07-15 14:40:16 sandervl Exp $
     1/* $Id: initkernel32.cpp,v 1.22 2002-07-21 09:17:28 sandervl Exp $
    22 *
    33 * KERNEL32 DLL entry point
     
    134134            OpenPrivateLogFiles();
    135135
    136             if (InitializeSharedHeap() == FALSE)
    137                 return 0UL;
    138 
    139             if (InitializeCodeHeap() == FALSE)
    140                 return 0UL;
    141 
    142136            //SvL: Do it here instead of during the exe object creation
    143137            //(std handles can be used in win32 dll initialization routines
    144138            HMInitialize();             /* store standard handles within HandleManager */
    145 
    146             InitializeMemMaps();
    147 
    148             PROFILE_LoadOdinIni();
    149             dllHandle = RegisterLxDll(hModule, 0, (PVOID)&kernel32_PEResTab);
    150             if (dllHandle == 0)
    151                 return 0UL;
    152 
    153             //SvL: Kernel32 is a special case; pe.exe loads it, so increase
    154             //     the reference count here
    155             Win32DllBase *module = Win32DllBase::findModule(dllHandle);
    156             if (module)
    157             {
    158                 module->AddRef();
    159                 module->DisableUnload();
    160             }
    161139
    162140            /* knut: check for high memory support */
     
    174152            else
    175153                flAllocMem = 0;        // no high memory support
     154
     155            if (InitializeSharedHeap() == FALSE)
     156                return 0UL;
     157
     158            if (InitializeCodeHeap() == FALSE)
     159                return 0UL;
     160
     161            InitializeMemMaps();
     162
     163            PROFILE_LoadOdinIni();
     164            dllHandle = RegisterLxDll(hModule, 0, (PVOID)&kernel32_PEResTab);
     165            if (dllHandle == 0)
     166                return 0UL;
     167
     168            //SvL: Kernel32 is a special case; pe.exe loads it, so increase
     169            //     the reference count here
     170            Win32DllBase *module = Win32DllBase::findModule(dllHandle);
     171            if (module)
     172            {
     173                module->AddRef();
     174                module->DisableUnload();
     175            }
    176176
    177177            OSLibDosSetInitialMaxFileHandles(ODIN_DEFAULT_MAX_FILEHANDLES);
Note: See TracChangeset for help on using the changeset viewer.