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] enable acpi_get_sysname()

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [patch] enable acpi_get_sysname()
From: Greg Edwards <edwardsg@xxxxxxx>
Date: Mon, 6 Jun 2005 15:11:57 -0500
Delivery-date: Mon, 06 Jun 2005 20:11:06 +0000
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/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
Dan,

Attached patch enables acpi_get_sysname() for non CONFIG_IA64_GENERIC
kernels.  I figured it doesn't make sense to pull in all the machvec
infrastructure just for one function.

I use acpi_get_sysname() in the early console registration to see if we
are on an sn2 machine or simulator.

Greg


 xen/arch/ia64/acpi.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

Index: a/xen/arch/ia64/acpi.c
===================================================================
--- a/xen/arch/ia64/acpi.c      2005-06-06 13:26:45.792073715 -0500
+++ b/xen/arch/ia64/acpi.c      2005-06-06 13:27:56.674046424 -0500
@@ -68,7 +68,7 @@ unsigned char acpi_legacy_devices;
 const char *
 acpi_get_sysname (void)
 {
-#ifdef CONFIG_IA64_GENERIC
+/* #ifdef CONFIG_IA64_GENERIC */
        unsigned long rsdp_phys;
        struct acpi20_table_rsdp *rsdp;
        struct acpi_table_xsdt *xsdt;
@@ -101,6 +101,7 @@ acpi_get_sysname (void)
        }
 
        return "dig";
+/*
 #else
 # if defined (CONFIG_IA64_HP_SIM)
        return "hpsim";
@@ -114,6 +115,7 @@ acpi_get_sysname (void)
 #      error Unknown platform.  Fix acpi.c.
 # endif
 #endif
+*/
 }
 
 #ifdef CONFIG_ACPI_BOOT

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [patch] enable acpi_get_sysname(), Greg Edwards <=