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] [xenppc-unstable] [TOOLS][POWERPC]fixes to put back commandline

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [TOOLS][POWERPC]fixes to put back commandline in prose builder
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Oct 2006 23:20:34 +0000
Delivery-date: Tue, 24 Oct 2006 16:35:03 -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>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 9148f7816d00bc45a8795a5119db9949894a3f89
# Parent  d18a0c0b77d7004631559d4e2f9d31744fe9b34a
[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>
---
 tools/libxc/powerpc64/xc_prose_build.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r d18a0c0b77d7 -r 9148f7816d00 tools/libxc/powerpc64/xc_prose_build.c
--- a/tools/libxc/powerpc64/xc_prose_build.c    Wed Oct 18 16:07:33 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-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [TOOLS][POWERPC]fixes to put back commandline in prose builder, Xen patchbot-xenppc-unstable <=