Customizing Memory (Windows Embedded CE 6.0)
After calling OEMInit, the kernel calls the function pointed to by pNKEnumExtensionDRAM if provided. Otherwise, it calls the OEMGetExtensionDRAM function to determine whether a non-contiguous bank of dynamic RAM (DRAM) is available on the target device. The kernel also calls this function when a user adds and removes memory.
If a user adds memory, the kernel can continue processing without interruption. However, the kernel assumes that the additional memory, called extension memory, contains part of the object store, and therefore performs a cold boot to reinitialize the object store when a user removes the extension memory.
While you can define memory areas in the Config.bib file, you can define extension memory using OEMGetExtensionDRAM, OEMEnumExtensionDRAM, and the MainMemoryEndAddress global variable only.
Because the kernel uses any memory that it is aware of, do not define any memory areas that you want to reserve for a driver. For more information about the Config.bib file, see Config.bib Customization.
The following list shows the ways in which you can customize memory management: