mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- wdm.h: Define ALLOC_PRAGMA and ALLOC_DATA_PRAGMA for MSVC.
- marea.c: MmInitMemoryAreas doesn't exist anymore so don't try to put it in .INIT. svn path=/trunk/; revision=42883
This commit is contained in:
parent
faf3bb5778
commit
ccbdde9482
2 changed files with 19 additions and 4 deletions
|
@ -28,6 +28,25 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
||||
//
|
||||
// Indicate if #pragma alloc_text() is supported
|
||||
//
|
||||
#if defined(_M_IX86) || defined(_M_AMD64) || defined(_M_IA64)
|
||||
#define ALLOC_PRAGMA 1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Indicate if #pragma data_seg() is supported
|
||||
//
|
||||
#if defined(_M_IX86) || defined(_M_AMD64)
|
||||
#define ALLOC_DATA_PRAGMA 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* Simple types */
|
||||
typedef UCHAR KPROCESSOR_MODE;
|
||||
typedef LONG KPRIORITY;
|
||||
|
|
|
@ -45,10 +45,6 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitMemoryAreas)
|
||||
#endif
|
||||
|
||||
MEMORY_AREA MiStaticMemoryAreas[MI_STATIC_MEMORY_AREAS];
|
||||
ULONG MiStaticMemoryAreaCount;
|
||||
|
||||
|
|
Loading…
Reference in a new issue