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-ppc-devel

[XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] use is_initial_xendomain(

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] use is_initial_xendomain()
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 08 Oct 2006 18:03:28 +0000
Delivery-date: Sun, 08 Oct 2006 11:32:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID c2f25eb27f246a16df21367fad993ee91732f680
# Parent  de401e010c25cc59af09ac4522a200b65e4faf5f
[LINUX][XEN][POWERPC] use is_initial_xendomain()

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 arch/powerpc/platforms/xen/setup.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff -r de401e010c25 -r c2f25eb27f24 arch/powerpc/platforms/xen/setup.c
--- a/arch/powerpc/platforms/xen/setup.c        Wed Oct 04 14:12:00 2006 -0400
+++ b/arch/powerpc/platforms/xen/setup.c        Sat Oct 07 17:57:56 2006 -0400
@@ -34,7 +34,6 @@ EXPORT_SYMBOL(HYPERVISOR_shared_info);
 
 /* Raw start-of-day parameters from the hypervisor. */
 start_info_t *xen_start_info;
-static int is_dom0;
 
 extern struct machdep_calls mach_maple_md;
 extern void maple_pci_init(void);
@@ -111,9 +110,7 @@ static void __init xen_init_early(void)
        DBG("    console_mfn    %llx\n", xen_start_info->console.domU.mfn);
        DBG("    console_evtchn %x\n", xen_start_info->console.domU.evtchn);
 
-       is_dom0 = !!(xen_start_info->flags & SIF_INITDOMAIN);
-       
-       if (is_dom0) {
+       if (is_initial_xendomain()) {
                ppc_md.pcibios_fixup            = mach_maple_md.pcibios_fixup;
                ppc_md.pci_get_legacy_ide_irq   = 
mach_maple_md.pci_get_legacy_ide_irq;
                ppc_md.get_boot_time            = mach_maple_md.get_boot_time;
@@ -225,7 +222,7 @@ void __init xen_setup_arch(void)
 #endif
 
        /* Lookup PCI hosts */
-       if (is_dom0)
+       if (is_initial_xendomain())
                maple_pci_init();
 
 #ifdef CONFIG_DUMMY_CONSOLE

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] use is_initial_xendomain(), Xen patchbot-linux-ppc-2 . 6 <=