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] [pushed] [ppc] fix absence of vterms for the of_handler

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] fix absence of vterms for the of_handler
From: jimix@xxxxxxxxxxxxxx
Date: Thu, 30 Mar 2006 14:37:40 -0500
Delivery-date: Thu, 30 Mar 2006 19:37:11 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
changeset:   9712:11301521b11de329d23fd60b8b088db9b5a83c92
tag:         tip
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Thu Mar 30 14:36:44 2006 -0500
files:       xen/arch/ppc/of_handler/vdevice.c
description:
[ppc] fix absence of vterms for the of_handler


diff -r da218291a2787cd8a141e9c8fa47bfd2f4ed13e4 -r 
11301521b11de329d23fd60b8b088db9b5a83c92 xen/arch/ppc/of_handler/vdevice.c
--- a/xen/arch/ppc/of_handler/vdevice.c Thu Mar 30 14:35:43 2006 -0500
+++ b/xen/arch/ppc/of_handler/vdevice.c Thu Mar 30 14:36:44 2006 -0500
@@ -28,17 +28,18 @@ ofh_vty_init(ofdn_t chosen, ulong b)
 {
     void *mem = ofd_mem(b);
     u32 ih = DRELA((u32)&_ih_vty_0, b);
+
+#ifdef VTY
     struct ofh_ihandle *ihp = (struct ofh_ihandle *)((ulong)ih);
     ofdn_t vty;
     s32 ret;
     u32 chan;
 
-
     /* fixup the ihandle */
     vty = ofd_node_find(mem,
                         DRELA((const char *)"/vdevice/vty", b));
     if (vty <= 0) {
-        return;
+        return -1;
     }
     ihp->ofi_node = vty;
 
@@ -48,6 +49,9 @@ ofh_vty_init(ofdn_t chosen, ulong b)
         chan = 0;
     }
     ofh_cons_init(chan, b);
+#else
+    ofh_cons_init(0, b);
+#endif
 
     ofd_prop_add(mem, chosen, DRELA((const char *)"stdout", b),
                  &ih, sizeof (ih));



_______________________________________________
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] [pushed] [ppc] fix absence of vterms for the of_handler, jimix <=