aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:12:54 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:12:54 +0100
commit09bfdcd4f24440b0a6ec85c64d929214c98bc148 (patch)
treed30f105890802b027ea79267fbcffb48a7d83535 /com32/hdt
parent1487261e9678cf7bea00e64b6deaae963a6470e1 (diff)
downloadsyslinux-09bfdcd4f24440b0a6ec85c64d929214c98bc148.tar.gz
syslinux-09bfdcd4f24440b0a6ec85c64d929214c98bc148.tar.xz
syslinux-09bfdcd4f24440b0a6ec85c64d929214c98bc148.zip
hdt: Displaying FACS in gui mode
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-menu-acpi.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/hdt/hdt-menu-acpi.c b/com32/hdt/hdt-menu-acpi.c
index 46ecb67a..2a5c3f1d 100644
--- a/com32/hdt/hdt-menu-acpi.c
+++ b/com32/hdt/hdt-menu-acpi.c
@@ -92,8 +92,19 @@ static void compute_acpi_tables(struct s_my_menu *menu,
if (hardware->acpi.tcpa.valid)
compute_table(menu,hardware->acpi.tcpa.address, &hardware->acpi.tcpa.header);
+ if (hardware->acpi.mcfg.valid)
+ compute_table(menu,hardware->acpi.mcfg.address, &hardware->acpi.mcfg.header);
+
/* FACS isn't having the same headers, let's use a dedicated rendering */
if (hardware->acpi.facs.valid) {
+ s_facs *fa = &hardware->acpi.facs;
+ char buffer[SUBMENULEN + 1] = { 0 };
+ char statbuffer[STATLEN + 1] = { 0 };
+
+ snprintf(buffer, sizeof buffer, "%-4s", fa->signature);
+ snprintf(statbuffer, sizeof statbuffer, "%-4s @ 0x%p", fa->signature, fa->address);
+ add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
+ menu->items_count++;
}
if (hardware->acpi.madt.valid)