![]() |
| Home |
|
|
Function RTCMOSExtendHeapRTCMOSExtendHeap uses information from the BIOS and CMOS RAM to determine the amount of physical memory installed. If more memory than currently used is found, the extra RAM is added to the heap: int RTCMOSExtendHeap(void); Internally, this function calls RTGetExtMem, RTCMOSRead, and RTExtendHeap. For possible return codes and additional information, please refer to function RTExtendHeap. RTCMOSExtendHeap should only be called from Init functions. If the program uses the virtual memory manager, RTExtendHeap will not add pages above address 2G, unless RTTarget-32 flag RT_EXTEND_All_RAM has been set. This prevents the virtual address space from being used up by many physical pages. To use more than 2G of RAM, use the fixed memory manager. This function requires a PC compatible BIOS with support for int 15h function E820h or E801h, or an MC146818A Real-Time Clock on the target.
|