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-changelog

[Xen-changelog] [xen-unstable] [TOOLS][POWERPC]fixes to put back command

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [TOOLS][POWERPC]fixes to put back commandline in prose builder
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Dec 2006 17:34:44 +0000
Delivery-date: Wed, 13 Dec 2006 09:38:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

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