Changeset 21796 for branches/gcc-kmk/src
- Timestamp:
- Nov 8, 2011, 10:19:10 PM (14 years ago)
- Location:
- branches/gcc-kmk/src/kernel32
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/kernel32/Makefile.kmk
r21786 r21796 136 136 oslibwps.cpp \ 137 137 _ras.cpp \ 138 globaldata.asm \ 138 139 kernelrsrc.orc 139 140 … … 143 144 dbgwrap.cpp \ 144 145 kernel32dbg.def 146 147 # This overcomes current emxomfld limitation wrt SEGMENTS in .DEF 148 kernel32_LDFLAGS = -Zlinker '"SEGMENT _GLOBALDATA LOADONCALL READWRITE SHARED"' 145 149 146 150 ifndef CUSTOMBUILD -
branches/gcc-kmk/src/kernel32/heapshared.cpp
r21714 r21796 31 31 #include "dbglocal.h" 32 32 33 #define MAX_HEAPSIZE 33 #define MAX_HEAPSIZE (2048*1024) 34 34 #define MAX_HEAPPAGES (MAX_HEAPSIZE/PAGE_SIZE) 35 35 #define INCR_HEAPSIZE (16*1024) 36 36 37 // Global DLL Data38 #pragma data_seg(_GLOBALDATA)39 Heap_t sharedHeap = 0; 40 static PVOID pSharedMem = NULL; 41 static BYTE pageBitmap[MAX_HEAPPAGES] = {0}; 42 static ULONG refCount = 0; 43 #pragma data_seg() 37 // 38 // Global DLL Data (keep it in sync with globaldata.asm!) 39 // 40 extern Heap_t sharedHeap; // = 0 41 extern PVOID pSharedMem; // = NULL 42 extern BYTE pageBitmap[MAX_HEAPPAGES]; // = {0} 43 extern ULONG refCount; // = 0; 44 44 45 45 static int privateRefCount = 0; -
branches/gcc-kmk/src/kernel32/initterm.cpp
r21734 r21796 60 60 extern PFN pfnImSetMsgQueueProperty; 61 61 62 // Global DLL Data63 #pragma data_seg(_GLOBALDATA)64 int globLoadNr = 0; 65 #pragma data_seg() 62 // 63 // Global DLL Data (keep it in sync with globaldata.asm!) 64 // 65 extern int globLoadNr; // = 0 66 66 67 67 BOOL fVersionWarp3 = FALSE; -
branches/gcc-kmk/src/kernel32/kernel32.def
r21793 r21796 8 8 DESCRIPTION 'Odin32 System DLL - Kernel32' 9 9 10 SEGMENTS 11 12 _GLOBALDATA CLASS 'DATA' SHARED LOADONCALL READWRITE 10 ; 11 ; Segments are done with LDFLAGS (emxomfld limitation) 12 ; 13 ; SEGMENTS 14 ; 15 ; _GLOBALDATA CLASS 'DATA' SHARED LOADONCALL READWRITE 16 ; 13 17 14 18 IMPORTS -
branches/gcc-kmk/src/kernel32/kernel32dbg.def
r21793 r21796 8 8 DESCRIPTION 'Odin32 System DLL - Kernel32' 9 9 10 SEGMENTS 11 12 _GLOBALDATA CLASS 'DATA' SHARED LOADONCALL READWRITE 10 ; 11 ; Segments are done with LDFLAGS (emxomfld limitation) 12 ; 13 ; SEGMENTS 14 ; 15 ; _GLOBALDATA CLASS 'DATA' SHARED LOADONCALL READWRITE 16 ; 13 17 14 18 IMPORTS -
branches/gcc-kmk/src/kernel32/mmap.cpp
r21732 r21796 41 41 #include "dbglocal.h" 42 42 43 44 45 //Global DLL Data46 #pragma data_seg(_GLOBALDATA)47 Win32MemMap *Win32MemMap::memmaps = NULL;48 CRITICAL_SECTION_OS2 globalmapcritsect = {0};49 #pragma data_seg()50 51 52 43 static LPCSTR pszMMapSemName = MEMMAP_CRITSECTION_NAME; 53 44 -
branches/gcc-kmk/src/kernel32/mmap.h
r10376 r21796 284 284 //****************************************************************************** 285 285 286 #pragma data_seg(_GLOBALDATA) 286 // 287 // Global DLL Data (keep it in sync with globaldata.asm!) 288 // 287 289 extern CRITICAL_SECTION_OS2 globalmapcritsect; 288 #pragma data_seg()289 290 290 291 void InitializeMemMaps();
Note:
See TracChangeset
for help on using the changeset viewer.