direct-io.hg

changeset 12952:b0293bc59835

[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@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Oct 24 19:11:00 2006 -0400 (2006-10-24)
parents 95cf2e3e7e0a
children a60e804c0a31
files tools/libxc/powerpc64/xc_prose_build.c
line diff
     1.1 --- a/tools/libxc/powerpc64/xc_prose_build.c	Wed Oct 18 11:29:57 2006 -0400
     1.2 +++ b/tools/libxc/powerpc64/xc_prose_build.c	Tue Oct 24 19:11:00 2006 -0400
     1.3 @@ -16,6 +16,7 @@
     1.4   * Copyright (C) IBM Corporation 2006
     1.5   *
     1.6   * Authors: Hollis Blanchard <hollisb@us.ibm.com>
     1.7 + *          Jonathan Appavoo <jappavoo@us.ibm.com>
     1.8   */
     1.9  
    1.10  #include <stdio.h>
    1.11 @@ -208,6 +209,9 @@ static unsigned long create_start_info(
    1.12      start_info->store_evtchn = store_evtchn;
    1.13      start_info->console.domU.mfn = (rma_top >> PAGE_SHIFT) - 3;
    1.14      start_info->console.domU.evtchn = console_evtchn;
    1.15 +    strncpy((char *)start_info->cmd_line, cmdline, MAX_GUEST_CMDLINE);
    1.16 +    /* just in case we truncated cmdline with strncpy add 0 at the end */
    1.17 +    start_info->cmd_line[MAX_GUEST_CMDLINE-1]=0;
    1.18      start_info_addr = rma_top - 4*PAGE_SIZE;
    1.19  
    1.20      rc = ft_set_rsvmap(devtree, 0, start_info_addr, 4*PAGE_SIZE);
    1.21 @@ -216,11 +220,9 @@ static unsigned long create_start_info(
    1.22          return ~0UL;
    1.23      }
    1.24  
    1.25 -
    1.26      return start_info_addr;
    1.27  }
    1.28  
    1.29 -
    1.30  static void free_page_array(xen_pfn_t *page_array)
    1.31  {
    1.32      free(page_array);