ia64/xen-unstable

diff tools/libxc/powerpc64/utils.c @ 13939:09b3fd488726

[XEND][POWERPC] Remove FlatDeviceTree.py, eliminate devtree from prose builder.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sun Jan 21 08:15:39 2007 -0500 (2007-01-21)
parents a510c94ceaa3
children 978ff6fad81f
line diff
     1.1 --- a/tools/libxc/powerpc64/utils.c	Sun Jan 21 08:14:27 2007 -0500
     1.2 +++ b/tools/libxc/powerpc64/utils.c	Sun Jan 21 08:15:39 2007 -0500
     1.3 @@ -13,7 +13,7 @@
     1.4   * along with this program; if not, write to the Free Software
     1.5   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     1.6   *
     1.7 - * Copyright (C) IBM Corporation 2006
     1.8 + * Copyright IBM Corporation 2006, 2007
     1.9   *
    1.10   * Authors: Hollis Blanchard <hollisb@us.ibm.com>
    1.11   *          Jimi Xenidis <jimix@watson.ibm.com>
    1.12 @@ -37,29 +37,6 @@
    1.13  #include "flatdevtree.h"
    1.14  #include "utils.h"
    1.15  
    1.16 -unsigned long get_rma_pages(void *devtree)
    1.17 -{
    1.18 -    void *rma;
    1.19 -    uint64_t rma_reg[2];
    1.20 -    int rc;
    1.21 -
    1.22 -    rma = ft_find_node(devtree, "/memory@0");
    1.23 -    if (rma == NULL) {
    1.24 -        DPRINTF("couldn't find /memory@0\n");
    1.25 -        return 0;
    1.26 -    }
    1.27 -    rc = ft_get_prop(devtree, rma, "reg", rma_reg, sizeof(rma_reg));
    1.28 -    if (rc < 0) {
    1.29 -        DPRINTF("couldn't get /memory@0/reg\n");
    1.30 -        return 0;
    1.31 -    }
    1.32 -    if (rma_reg[0] != 0) {
    1.33 -        DPRINTF("RMA did not start at 0\n");
    1.34 -        return 0;
    1.35 -    }
    1.36 -    return rma_reg[1] >> PAGE_SHIFT;
    1.37 -}
    1.38 -
    1.39  int get_rma_page_array(int xc_handle, int domid, xen_pfn_t **page_array,
    1.40  		       unsigned long nr_pages)
    1.41  {