[ros-kernel] How to get started writing ReactOS drivers

Jonathan Wilson jonwil at tpgi.com.au
Mon Feb 9 08:31:40 CET 2004


Vizzini wrote:
> On Sun, 2004-02-08 at 11:18, Mike Nordell wrote:
> 
>>>What is the right way to lock these drivers into memory, then?
>>
>>Not sure if it's this level the question refers to, but PE sections have a
>>"not paged" flag that is used for just this purpose (bit 27 I think). Using
>>MS tools, "dumpbin /headers" on an existing windows driver, e.g. atapi.sys
>>displays this (and using the MSVC linker this bit is set with
>>"/section:name,P").
> 
> 
> Yeah, that sounds right to me too. The next question is what method ros
> drivers should use to set that bit.
The ideal solution would be to modify LD and add a flag to mark sections as 
nonpagable (just like the MS linker has one)

But, failing that, another answer is to make a simple tool that modifies a 
PE file and marks segments as not pageable.




More information about the Ros-kernel mailing list