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] add a xen cons package with enough information t

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] add a xen cons package with enough information to help the OFH use it
From: jimix@xxxxxxxxxxxxxx
Date: Tue, 04 Apr 2006 08:26:09 -0400
Delivery-date: Tue, 04 Apr 2006 05:24:13 -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>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
changeset:   9751:d8726d7827b42c4c3254751aaafb306cc0f12590
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Tue Apr  4 08:20:42 2006 -0400
files:       xen/arch/ppc/ofd_fixup.c
description:
[ppc] add a xen cons package with enough information to help the OFH use it


diff -r e0afa5ac4a4f6e33e18a19227ae4bff6a2a29248 -r 
d8726d7827b42c4c3254751aaafb306cc0f12590 xen/arch/ppc/ofd_fixup.c
--- a/xen/arch/ppc/ofd_fixup.c  Mon Apr  3 13:30:03 2006 -0400
+++ b/xen/arch/ppc/ofd_fixup.c  Tue Apr  4 08:20:42 2006 -0400
@@ -421,6 +421,7 @@ static ofdn_t ofd_xen_props(void *m, str
 {
     ofdn_t n;
     static const char path[] = "/xen";
+    static const char console[] = "/xen/console";
 
     n = ofd_node_add(m, OFD_ROOT, path, sizeof (path));
     if (n > 0) {
@@ -446,6 +447,12 @@ static ofdn_t ofd_xen_props(void *m, str
         val[1] =  RMA_LAST_DOM0 * PAGE_SIZE;
         val[0] =  d->arch.rma_size - val[1];
         ofd_prop_add(m, n, "reserved", val, sizeof (val));
+
+        n = ofd_node_add(m, n, console, sizeof (console));
+        if (n > 0) {
+            val[0] = 0;
+            ofd_prop_add(m, n, "reg", &val[0], sizeof (val[0]));
+        }
     }
     return n;
 }



_______________________________________________
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] add a xen cons package with enough information to help the OFH use it, jimix <=