Author: sginsberg
Date: Sun Aug 23 17:14:13 2009
New Revision: 42883

URL: http://svn.reactos.org/svn/reactos?rev=42883&view=rev
Log:
- 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.

Modified:
    trunk/reactos/include/ddk/wdm.h
    trunk/reactos/ntoskrnl/mm/marea.c

Modified: trunk/reactos/include/ddk/wdm.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/wdm.h?rev=42883&r1=42882&r2=42883&view=diff
==============================================================================
--- trunk/reactos/include/ddk/wdm.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/wdm.h [iso-8859-1] Sun Aug 23 17:14:13 2009
@@ -25,6 +25,25 @@
 #define PORT_MAXIMUM_MESSAGE_LENGTH 512
 #else
 #define PORT_MAXIMUM_MESSAGE_LENGTH 256
+#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
 
 

Modified: trunk/reactos/ntoskrnl/mm/marea.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/marea.c?rev=42883&r1=42882&r2=42883&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] Sun Aug 23 17:14:13 2009
@@ -44,10 +44,6 @@
 #include <ntoskrnl.h>
 #define NDEBUG
 #include <debug.h>
-
-#if defined (ALLOC_PRAGMA)
-#pragma alloc_text(INIT, MmInitMemoryAreas)
-#endif
 
 MEMORY_AREA MiStaticMemoryAreas[MI_STATIC_MEMORY_AREAS];
 ULONG MiStaticMemoryAreaCount;


Reply via email to