aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/memory.h
Commit message (Collapse)AuthorAgeFilesLines
* gpllibs: Running NindentErwan Velu2009-11-241-10/+11
| | | | | | Impact: visual Running Nindent on gpllib / gplinclude
* memory: Commenting workaroundroot2009-11-231-0/+3
| | | | | | | | Impact: none HDT is using a memory detection code which duplicates some syslinux code. Once addr_t will be moved into 64bit, this can be removed by using syslinux_scan_memory().
* memory: Adding memory size detectionErwan Velu2009-11-231-0/+12
| | | | | | | | | | | | | | | Impact: allow com32 module to detect the amount of memory installed This commit adds several function: sanitize_e820_map() to generate a new e820 map that doesn't have overlaping memsize_e820() to detect the available memory (in KB) detect_memsize() to detect the amount of memory by using e820/e801/e88. It first try to detect the memory via e820. If it fails, it uses e801 as fallback. If this e801 fails, e88 is used.
* gllib: Add e801 and 88 memory detectionPierre-Alexandre Meyer2009-05-021-0/+2
| | | | | | | | Add Bios calls INT 0x15, AX = 0xE801 and INT 0x15, AH = 0x88 to detect the memory. These can be used as a fallback when e820 is not available. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* gpllib: Add detect_memory_e820 callPierre-Alexandre Meyer2009-05-021-0/+35
detect_memory_e820 populates an array of struct e820entry using INT 15, AX = E820h. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>