[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [pushed] [ppc] fix absence of vterms for the of_handler



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.