From c2a92cf4ba8adf13e2274803617dfb0cf6dce5e0 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Thu, 3 Dec 2009 10:17:28 +0100 Subject: hdt: Adding ACPI SBST impact: Adding SBST Adding SBST display --- com32/hdt/hdt-cli-acpi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/com32/hdt/hdt-cli-acpi.c b/com32/hdt/hdt-cli-acpi.c index b705cbaf..eb5d6e04 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 = { -- cgit v1.2.1