|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [xenppc-unstable] [TOOLS][POWERPC]fixes to put back commandline
# 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 <=
|
|
|
|
|