diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-11-23 13:39:55 +0100 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-11-23 13:39:55 +0100 |
commit | d7ddef0afcc7224a002a4e9cb3e54a3c216d0f6f (patch) | |
tree | c474d25fe1d15d909a218795c5b379d532267f06 /dummy.c | |
parent | ae69dd05fc133f67664816db4564a5202d6b2301 (diff) | |
download | syslinux-d7ddef0afcc7224a002a4e9cb3e54a3c216d0f6f.tar.gz |
memory: Adding memory size detection
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.
Diffstat (limited to 'dummy.c')
0 files changed, 0 insertions, 0 deletions