Author: sginsberg
Date: Thu Sep  3 09:29:26 2015
New Revision: 68930

URL: http://svn.reactos.org/svn/reactos?rev=68930&view=rev
Log:
- Explicitly make the kernel .rsrc/Resource Directory non-discardable and 
non-pageable on MSVC builds, as it is accessed from bugcheck code. Previously 
this data was marked as discardable and the bugcheck routine would bugcheck 
(after a certain stage in boot) when trying to access the bugcheck code data 
because the data was discarded and the memory invalidated. Thanks to Thomas for 
the help and the fix.

Modified:
    trunk/reactos/ntoskrnl/CMakeLists.txt
    trunk/reactos/ntoskrnl/ntkrnlmp/CMakeLists.txt

Modified: trunk/reactos/ntoskrnl/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/CMakeLists.txt?rev=68930&r1=68929&r2=68930&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/CMakeLists.txt       [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/CMakeLists.txt       [iso-8859-1] Thu Sep  3 
09:29:26 2015
@@ -28,6 +28,7 @@
 
 if(MSVC)
     set_image_base(ntoskrnl 0x00400000)
+    add_target_link_flags(ntoskrnl "/SECTION:.rsrc,!DP") #Accessed from 
bugcheck code
 else()
     if(GDB)
         set_image_base(ntoskrnl 0x00800000)

Modified: trunk/reactos/ntoskrnl/ntkrnlmp/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntkrnlmp/CMakeLists.txt?rev=68930&r1=68929&r2=68930&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ntkrnlmp/CMakeLists.txt      [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ntkrnlmp/CMakeLists.txt      [iso-8859-1] Thu Sep  3 
09:29:26 2015
@@ -28,6 +28,7 @@
 
 if(MSVC)
     set_image_base(ntkrnlmp 0x00400000)
+    add_target_link_flags(ntoskrnl "/SECTION:.rsrc,!DP") #Accessed from 
bugcheck code
 else()
     set_image_base(ntkrnlmp 0x80800000)
 endif()


Reply via email to