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 <[EMAIL PROTECTED]>

----

diff -r 2a3d9574a21f tools/libxc/powerpc64/xc_prose_build.c
--- a/tools/libxc/powerpc64/xc_prose_build.c    Wed Oct 18 18:21:19 2006 -0400
+++ b/tools/libxc/powerpc64/xc_prose_build.c    Sun Oct 22 13:41:54 2006 -0400
@@ -16,6 +16,7 @@
  * Copyright (C) IBM Corporation 2006
  *
  * Authors: Hollis Blanchard <[EMAIL PROTECTED]>
+ *          Jonathan Appavoo <[EMAIL PROTECTED]>
  */
 
 #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);
@@ -220,11 +224,12 @@ static unsigned long create_start_info(
     return start_info_addr;
 }
 
-
 static void free_page_array(xen_pfn_t *page_array)
 {
     free(page_array);
 }
+
+
 
 int xc_prose_build(int xc_handle,
                    uint32_t domid,

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

Reply via email to