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

Re: [XenPPC] [PATCH] merge firmware and builtin command lines

Get rid of hard-coded console=ttyS0 bootargs in Xen, now that Linux has
a preferred console.  Compiled and tested up to successful nfsroot on
JS20.

Signed-off-by: Amos Waterland <apw@xxxxxxxxxx>

---

 ofd_fixup.c |    5 -----
 1 file changed, 5 deletions(-)

diff -r 4ce02fb93818 xen/arch/ppc/ofd_fixup.c
--- a/xen/arch/ppc/ofd_fixup.c  Fri Jun 16 15:58:32 2006 -0500
+++ b/xen/arch/ppc/ofd_fixup.c  Tue Jun 20 12:47:01 2006 -0400
@@ -251,7 +251,6 @@ static ofdn_t ofd_chosen_props(void *m, 
     ofdn_t n;
     ofdn_t p;
     static const char path[] = "/chosen";
-    static const char console[] = " console=ttyS0 ";
     char bootargs[256];
     int bsz;
     int sz;
@@ -280,10 +279,6 @@ static ofdn_t ofd_chosen_props(void *m, 
         }
     }
 
-    ASSERT(rm > sizeof(console));
-    
-    memcpy(&bootargs[bsz - 1], console, sizeof (console));
-    bsz += sizeof (console) - 1;
     printk("DOM0 bootargs: %s\n", bootargs);
     ofd_prop_add(m, n, "bootargs", bootargs, bsz);
 

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