mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:15:48 +00:00
- 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:
parent
638a301cd5
commit
349dd3bfe4
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue