mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user