[syslinux:master] hdt: Adding ACPI SBST

syslinux-bot for Erwan Velu erwan.velu at free.fr
Sun Feb 6 14:06:59 PST 2011


Commit-ID:  c2a92cf4ba8adf13e2274803617dfb0cf6dce5e0
Gitweb:     http://syslinux.zytor.com/commit/c2a92cf4ba8adf13e2274803617dfb0cf6dce5e0
Author:     Erwan Velu <erwan.velu at free.fr>
AuthorDate: Thu, 3 Dec 2009 10:17:28 +0100
Committer:  Erwan Velu <erwan.velu at free.fr>
CommitDate: Fri, 4 Dec 2009 10:19:01 +0100

hdt: Adding ACPI SBST

impact: Adding SBST

Adding SBST display


---
 com32/hdt/hdt-cli-acpi.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/com32/hdt/hdt-cli-acpi.c b/com32/hdt/hdt-cli-acpi.c
index b705cba..eb5d6e0 100644
--- a/com32/hdt/hdt-cli-acpi.c
+++ b/com32/hdt/hdt-cli-acpi.c
@@ -40,9 +40,9 @@ static void show_header_32(uint32_t address, s_acpi_description_header * h)
 		h->oem_revision, h->creator_id, h->creator_revision, address)
 }
 
-static void show_header(uint32_t address, s_acpi_description_header * h)
+static void show_header(uint64_t address, s_acpi_description_header * h)
 {
-    more_printf("%-4s v%03x %-6s %-7s 0x%08x %-4s    0x%08x @ 0x%016lx\n",
+    more_printf("%-4s v%03x %-6s %-7s 0x%08x %-4s    0x%08x @ 0x%016llx\n",
 		h->signature, h->revision, h->oem_id, h->oem_table_id,
 		h->oem_revision, h->creator_id, h->creator_revision, address)
 }
@@ -85,6 +85,9 @@ void main_show_acpi(int argc __unused, char **argv __unused,
 		show_header(hardware->acpi.ssdt[i]->address, &hardware->acpi.ssdt[i]->header);
     }
 
+    if (hardware->acpi.sbst.valid)
+	show_header(hardware->acpi.sbst.address, &hardware->acpi.sbst.header);
+
 }
 
 struct cli_module_descr acpi_show_modules = {



More information about the Syslinux-commits mailing list