- 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.

svn path=/trunk/; revision=68930
This commit is contained in:
Stefan Ginsberg 2015-09-03 09:29:26 +00:00
parent 638a301cd5
commit 349dd3bfe4
2 changed files with 2 additions and 0 deletions

View file

@ -28,6 +28,7 @@ set_subsystem(ntoskrnl native)
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)

View file

@ -28,6 +28,7 @@ set_subsystem(ntkrnlmp native)
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()