WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] Print ACPI signature before overwriting it

To: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] [PATCH] Print ACPI signature before overwriting it
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Fri, 08 Aug 2008 09:42:37 -0600
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Fri, 08 Aug 2008 08:42:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: HP OSLO R&D
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Here's another trivial patch.  We're printing out the ACPI table
signature after we overwrite it with "OEMx".  Let's print it out before
so we know that the table was.  Also limit print to 4 chars so we don't
get garbage output.

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
--

diff -r 7c2bc0cd57c5 xen/arch/ia64/xen/dom_fw_dom0.c
--- a/xen/arch/ia64/xen/dom_fw_dom0.c   Fri Aug 08 08:50:10 2008 -0600
+++ b/xen/arch/ia64/xen/dom_fw_dom0.c   Fri Aug 08 09:37:11 2008 -0600
@@ -154,6 +154,8 @@ acpi_restore_tables()
 
 static int __init __acpi_table_disable(struct acpi_table_header *header)
 {
+       printk("Disabling ACPI table: %4.4s\n", header->signature);
+
        memcpy(header->oem_id, "xxxxxx", 6);
        memcpy(header->oem_id+1, header->signature, 4);
        memcpy(header->oem_table_id, "Xen     ", 8);
@@ -161,7 +163,6 @@ static int __init __acpi_table_disable(s
        header->checksum = 0;
        header->checksum = -acpi_tb_checksum((u8*)header, header->length);
 
-       printk("Successfully Disabling %s\n", header->signature);
        return 0;
 }
 



_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>