# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID 5979ad294b645d828ad3069cfed65c33b5292610
# Parent  d0faa25f5d3af8d4b0c97f3482d95dad2db1dec1
[POWERPC][TOOLS] Update the reservation map for the start_info page

Signed-off-by: Jimi Xenidis <[EMAIL PROTECTED]>
---
 tools/libxc/powerpc64/xc_linux_build.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)

diff -r d0faa25f5d3a -r 5979ad294b64 tools/libxc/powerpc64/xc_linux_build.c
--- a/tools/libxc/powerpc64/xc_linux_build.c    Fri Sep 15 12:55:14 2006 -0400
+++ b/tools/libxc/powerpc64/xc_linux_build.c    Fri Sep 15 12:56:21 2006 -0400
@@ -218,6 +218,15 @@ static int load_devtree(
 
     header = devtree;
     devtree_size = header->totalsize;
+    {
+        static const char dtb[] = "/tmp/xc_domU.dtb";
+        int dfd = creat(dtb, 0666);
+        if (dfd != -1) {
+            write(dfd, devtree, devtree_size);
+            close(dfd);
+        } else
+            DPRINTF("could not open(\"%s\")\n", dtb);
+    }
 
     DPRINTF("copying device tree to 0x%lx[0x%x]\n", DEVTREE_ADDR, 
devtree_size);
     return install_image(xc_handle, domid, page_array, devtree, DEVTREE_ADDR,
@@ -368,6 +377,13 @@ static unsigned long create_start_info(v
     si->console.domU.evtchn = console_evtchn;
     si_addr = rma_top - 4*PAGE_SIZE;
 
+    rc = ft_set_rsvmap(devtree, 0, si_addr, 4*PAGE_SIZE);
+    if (rc < 0) {
+        DPRINTF("couldn't set first reservation\n");
+        return ~0UL;
+    }
+
+
     return si_addr;
 }
 

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

Reply via email to