Modifying the Common.bib File to Support BinFS (Windows Embedded CE 6.0)
1/6/2010
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
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.
Open the Common.bib file.
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
Save Common.bib.