[syslinux:master] hdt: Adding FADT
syslinux-bot for Erwan Velu
erwan.velu at free.fr
Sun Feb 6 14:06:49 PST 2011
Commit-ID: 5f4650e4e640cba597fbadc4b85b26d07f6e795f
Gitweb: http://syslinux.zytor.com/commit/5f4650e4e640cba597fbadc4b85b26d07f6e795f
Author: Erwan Velu <erwan.velu at free.fr>
AuthorDate: Wed, 2 Dec 2009 14:55:26 +0100
Committer: Erwan Velu <erwan.velu at free.fr>
CommitDate: Fri, 4 Dec 2009 10:19:01 +0100
hdt: Adding FADT
Impact: Adding FADT
Adding FADT
---
com32/hdt/hdt-cli-acpi.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/com32/hdt/hdt-cli-acpi.c b/com32/hdt/hdt-cli-acpi.c
index f584f9d..fa8e5cf 100644
--- a/com32/hdt/hdt-cli-acpi.c
+++ b/com32/hdt/hdt-cli-acpi.c
@@ -33,13 +33,19 @@
#include <stdlib.h>
#include <errno.h>
-static void show_header(uint32_t address, s_acpi_description_header * h)
+static void show_header_32(uint32_t address, s_acpi_description_header * h)
{
- more_printf("%-5s (v%03x %-6s %-7s 0x%08x %-4s 0x%08x) @ 0x%08x\n",
+ more_printf("%-5s (v%03x %-6s %-7s 0x%08x %-4s 0x%08x) @ 0x%016x\n",
h->signature, h->revision, h->oem_id, h->oem_table_id,
h->oem_revision, h->creator_id, h->creator_revision, address)
}
+static void show_header(uint32_t address, s_acpi_description_header * h)
+{
+ more_printf("%-5s (v%03x %-6s %-7s 0x%08x %-4s 0x%08x) @ 0x%016lx\n",
+ h->signature, h->revision, h->oem_id, h->oem_table_id,
+ h->oem_revision, h->creator_id, h->creator_revision, address)
+}
void main_show_acpi(int argc __unused, char **argv __unused,
struct s_hardware *hardware)
{
@@ -61,10 +67,13 @@ void main_show_acpi(int argc __unused, char **argv __unused,
r->revision, r->oem_id, r->address);
}
if (hardware->acpi.rsdt.valid)
- show_header(hardware->acpi.rsdt.address, &hardware->acpi.rsdt.header);
+ show_header_32(hardware->acpi.rsdt.address, &hardware->acpi.rsdt.header);
if (hardware->acpi.xsdt.valid)
- show_header(hardware->acpi.xsdt.address, &hardware->acpi.xsdt.header);
+ show_header_32(hardware->acpi.xsdt.address, &hardware->acpi.xsdt.header);
+
+ if (hardware->acpi.fadt.valid)
+ show_header(hardware->acpi.fadt.address, &hardware->acpi.fadt.header);
// more_printf("XSDT (v%3x %6s %7s %08x %4s %08x) @ %08x",
}
More information about the Syslinux-commits
mailing list