Modifying the Common.bib File to Support BinFS

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

Windows Embedded CE 6.0 supports device drivers that run in use mode. However, if the User Mode Driver exports a PowerUp or PowerDown function and the driver code is demand-paged, a page fault error may occur. This error occurs when this type of the driver is in a BinFS partition, when this driver is in the FILEs section of the .bib file, or when this driver is in external storage instead of ROM.

To support this type of User Mode Driver in BinFS, you must modify the module attributes in the Common.bib file.

To modify the Common.bib file to support BinFS

  1. Obtain a list of each module that needs to be updated.

    • Look through the registry and find all User Mode Drivers.
    • Run the dumpbin /exports command on each of the User Mode Driver DLLs.
    • From the output, determine whether the DLL exports the PowerUp and PowerDown functions.
    • If the DLL does have these exported functions, then the DLL is a module that needs to be updated in the Common.bib file.
  2. Open the Common.bib file.

  3. For each module in your list, locate its entry in Common.bib and add the "M" flag to the entry. The "M" flag indicates that the module is non-pageable. For example:

    coredll.dll $(_FLATRELEASEDIR)\coredll.dll XIPKERNEL SHM
    
  4. Save Common.bib.

See Also

Tasks

How to Implement BinFS

Other Resources

DUMPBIN Tool
Demand Paging
User Mode Driver Framework