source: branches/gcc-kmk/src/kernel32/globaldata.asm@ 21800

Last change on this file since 21800 was 21797, checked in by dmik, 14 years ago

Place shared segment to separate group to avoid combining.

If the segment combined with other segments, Watcom Linker will ignore
the shared attribute for it.

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1;; @file
2; Global DLL data for KERNEL32.DLL.
3;
4; Note: sizes of data variables must be kept in sync with their C declarations!
5;
6
7.386
8 NAME globaldata
9
10SHARED_DGROUP GROUP SHARED_DATA
11
12_GLOBALDATA SEGMENT DWORD PUBLIC USE32 'DATA'
13
14;
15; initterm.cpp:
16;
17 PUBLIC _globLoadNr
18
19; extern int globLoadNr; // = 0
20_globLoadNr DD 0
21
22;
23; heapshared.cpp:
24;
25
26 PUBLIC _sharedHeap
27 PUBLIC _pSharedMem
28 PUBLIC _pageBitmap
29 PUBLIC _refCount
30
31PAGE_SIZE = 4096
32MAX_HEAPSIZE = (2048*1024)
33MAX_HEAPPAGES = (MAX_HEAPSIZE/PAGE_SIZE)
34
35; extern Heap_t sharedHeap; // = 0
36_sharedHeap DD 0
37; extern PVOID pSharedMem; // = NULL
38_pSharedMem DD 0
39; extern BYTE pageBitmap[MAX_HEAPPAGES]; // = {0}
40_pageBitmap DB MAX_HEAPPAGES DUP (0)
41; extern ULONG refCount; // = 0;
42_refCount DD 0
43
44;
45; mmap.h/mmap.cpp:
46;
47 PUBLIC _globalmapcritsect
48 PUBLIC __ZN11Win32MemMap7memmapsE
49
50; extern CRITICAL_SECTION_OS2 globalmapcritsect; // = {0}
51_globalmapcritsect DD 6 DUP (0)
52; /*static*/ Win32MemMap *Win32MemMap::memmaps; // = NULL
53__ZN11Win32MemMap7memmapsE DD 0
54
55_GLOBALDATA ENDS
56
57 END
58
Note: See TracBrowser for help on using the repository browser.