[syslinux:master] hdt: Displaying FACS in gui mode
syslinux-bot for Erwan Velu
erwanaliasr1 at gmail.com
Sun Feb 6 14:07:59 PST 2011
Commit-ID: 09bfdcd4f24440b0a6ec85c64d929214c98bc148
Gitweb: http://syslinux.zytor.com/commit/09bfdcd4f24440b0a6ec85c64d929214c98bc148
Author: Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Mon, 31 Jan 2011 22:12:54 +0100
Committer: Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Mon, 31 Jan 2011 22:12:54 +0100
hdt: Displaying FACS in gui mode
---
com32/hdt/hdt-menu-acpi.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/com32/hdt/hdt-menu-acpi.c b/com32/hdt/hdt-menu-acpi.c
index 46ecb67..2a5c3f1 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)
More information about the Syslinux-commits
mailing list