- 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:
Stefan Ginsberg 2009-08-23 15:14:13 +00:00
parent faf3bb5778
commit ccbdde9482
2 changed files with 19 additions and 4 deletions

View file

@ -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;

View file

@ -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;