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

[Xen-changelog] [xen-unstable] [TOOLS][POWERPC]fixes to put back commandline in prose builder



# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID b0293bc598358a7850fd397eea1301a907669830
# Parent  95cf2e3e7e0abea620e8ce86269bf77975e8da18
[TOOLS][POWERPC]fixes to put back commandline in prose builder
The following patch puts back a couple of lines of code which
copies the specified command line to the start info structure.
Must have gotten lost in prior merges.
Signed-off-by: Jonathan Appavoo <jappavoo@xxxxxxxxxx>
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 tools/libxc/powerpc64/xc_prose_build.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r 95cf2e3e7e0a -r b0293bc59835 tools/libxc/powerpc64/xc_prose_build.c
--- a/tools/libxc/powerpc64/xc_prose_build.c    Wed Oct 18 11:29:57 2006 -0400
+++ b/tools/libxc/powerpc64/xc_prose_build.c    Tue Oct 24 19:11:00 2006 -0400
@@ -16,6 +16,7 @@
  * Copyright (C) IBM Corporation 2006
  *
  * Authors: Hollis Blanchard <hollisb@xxxxxxxxxx>
+ *          Jonathan Appavoo <jappavoo@xxxxxxxxxx>
  */
 
 #include <stdio.h>
@@ -208,6 +209,9 @@ static unsigned long create_start_info(
     start_info->store_evtchn = store_evtchn;
     start_info->console.domU.mfn = (rma_top >> PAGE_SHIFT) - 3;
     start_info->console.domU.evtchn = console_evtchn;
+    strncpy((char *)start_info->cmd_line, cmdline, MAX_GUEST_CMDLINE);
+    /* just in case we truncated cmdline with strncpy add 0 at the end */
+    start_info->cmd_line[MAX_GUEST_CMDLINE-1]=0;
     start_info_addr = rma_top - 4*PAGE_SIZE;
 
     rc = ft_set_rsvmap(devtree, 0, start_info_addr, 4*PAGE_SIZE);
@@ -216,10 +220,8 @@ static unsigned long create_start_info(
         return ~0UL;
     }
 
-
     return start_info_addr;
 }
-
 
 static void free_page_array(xen_pfn_t *page_array)
 {

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


 


Rackspace

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