Changeset 4796 for trunk/src/kernel32/mmap.h
- Timestamp:
- Dec 13, 2000, 12:57:16 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/mmap.h
r4496 r4796 1 /* $Id: mmap.h,v 1.1 7 2000-10-18 17:09:33sandervl Exp $ */1 /* $Id: mmap.h,v 1.18 2000-12-12 23:57:16 sandervl Exp $ */ 2 2 3 3 /* … … 17 17 18 18 #ifndef PAGE_SIZE 19 #define PAGE_SIZE 19 #define PAGE_SIZE 4096 20 20 #endif 21 21 #ifndef PAGE_SHIFT 22 #define PAGE_SHIFT 22 #define PAGE_SHIFT 12 23 23 #endif 24 24 25 25 //commit 4 pages at once when the app accesses it 26 #define NRPAGES_TOCOMMIT 26 #define NRPAGES_TOCOMMIT 16 27 27 28 #define MEMMAP_ACCESS_READ 29 #define MEMMAP_ACCESS_WRITE 30 #define MEMMAP_ACCESS_EXECUTE 28 #define MEMMAP_ACCESS_READ 1 29 #define MEMMAP_ACCESS_WRITE 2 30 #define MEMMAP_ACCESS_EXECUTE 4 31 31 32 32 class Win32MemMapView; … … 73 73 74 74 #ifdef __DEBUG_ALLOC__ 75 76 77 78 79 80 81 82 75 void *operator new(size_t size, const char *filename, size_t lineno) 76 { 77 return _umalloc(sharedHeap, size); 78 } 79 void operator delete(void *location, const char *filename, size_t lineno) 80 { 81 free(location); 82 } 83 83 #else 84 85 86 87 88 89 90 91 84 void *operator new(size_t size) 85 { 86 return _umalloc(sharedHeap, size); 87 } 88 void operator delete(void *location) 89 { 90 free(location); 91 } 92 92 #endif 93 93 … … 112 112 private: 113 113 static Win32MemMap *memmaps; 114 114 Win32MemMap *next; 115 115 }; 116 116 //****************************************************************************** … … 138 138 139 139 #ifdef __DEBUG_ALLOC__ 140 141 142 143 144 145 146 147 140 void *operator new(size_t size, const char *filename, size_t lineno) 141 { 142 return _umalloc(sharedHeap, size); 143 } 144 void operator delete(void *location, const char *filename, size_t lineno) 145 { 146 free(location); 147 } 148 148 #else 149 150 151 152 153 154 155 156 149 void *operator new(size_t size) 150 { 151 return _umalloc(sharedHeap, size); 152 } 153 void operator delete(void *location) 154 { 155 free(location); 156 } 157 157 #endif 158 158 … … 161 161 ULONG mProcessId; 162 162 ULONG mfAccess, mOffset; 163 void *pMapView ;163 void *pMapView, *pShareViewAddr; 164 164 165 165 Win32MemMap *mParentMap;
Note:
See TracChangeset
for help on using the changeset viewer.