diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-11-23 13:44:51 +0100 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-11-23 13:44:51 +0100 |
commit | bb88c66722eedcf2a2e5fb03051c6cef4c9ad5a3 (patch) | |
tree | 0fdcd43bbc4e93444a5c4a0f5ea573213e833e43 /com32/hdt/hdt-menu.c | |
parent | d7ddef0afcc7224a002a4e9cb3e54a3c216d0f6f (diff) | |
download | syslinux-bb88c66722eedcf2a2e5fb03051c6cef4c9ad5a3.tar.gz |
hdt: Improving memory detection
Impact: Detect memory size even if dmi is broken
This commit uses e820/e801/e88 memory detection to find the memory size.
That allow to display the memory size even if the dmi table is broken
Diffstat (limited to 'com32/hdt/hdt-menu.c')
-rw-r--r-- | com32/hdt/hdt-menu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/com32/hdt/hdt-menu.c b/com32/hdt/hdt-menu.c index 5b52e8b7..6e2b5945 100644 --- a/com32/hdt/hdt-menu.c +++ b/com32/hdt/hdt-menu.c @@ -26,8 +26,9 @@ * ----------------------------------------------------------------------- */ -#include "hdt-menu.h" #include <unistd.h> +#include <memory.h> +#include "hdt-menu.h" int start_menu_mode(struct s_hardware *hardware, char *version_string) { @@ -297,6 +298,10 @@ void compute_main_menu(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware) void detect_hardware(struct s_hardware *hardware) { if (!quiet) + more_printf("MEMORY: Detecting\n"); + hardware->detected_memory_size = detect_memsize(); + + if (!quiet) more_printf("DMI: Detecting Table\n"); if (detect_dmi(hardware) == -ENODMITABLE) { printf("DMI: ERROR ! Table not found ! \n"); |