[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] arm: define max_page



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1329308661 0
# Node ID a0ada591197b155248e9467b6745d839b8fc4d07
# Parent  dbd5c30ad48f103232bdfd1ed3dfd04adc876d95
arm: define max_page

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Acked-by: Tim Deegan <tim@xxxxxxx>
Committed-by: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
---


diff -r dbd5c30ad48f -r a0ada591197b xen/arch/arm/dummy.S
--- a/xen/arch/arm/dummy.S      Wed Feb 15 12:24:20 2012 +0000
+++ b/xen/arch/arm/dummy.S      Wed Feb 15 12:24:21 2012 +0000
@@ -28,7 +28,6 @@
 DUMMY(gnttab_mark_dirty);
 DUMMY(hypercall_create_continuation);
 DUMMY(is_iomem_page);
-DUMMY(max_page);
 DUMMY(node_online_map);
 DUMMY(nr_irqs_gsi);
 DUMMY(page_get_owner_and_reference);
diff -r dbd5c30ad48f -r a0ada591197b xen/arch/arm/mm.c
--- a/xen/arch/arm/mm.c Wed Feb 15 12:24:20 2012 +0000
+++ b/xen/arch/arm/mm.c Wed Feb 15 12:24:21 2012 +0000
@@ -43,6 +43,8 @@
 unsigned long frametable_base_mfn;
 unsigned long frametable_virt_end;
 
+unsigned long max_page;
+
 /* Map a 4k page in a fixmap entry */
 void set_fixmap(unsigned map, unsigned long mfn, unsigned attributes)
 {
diff -r dbd5c30ad48f -r a0ada591197b xen/arch/arm/setup.c
--- a/xen/arch/arm/setup.c      Wed Feb 15 12:24:20 2012 +0000
+++ b/xen/arch/arm/setup.c      Wed Feb 15 12:24:21 2012 +0000
@@ -32,6 +32,7 @@
 #include <xen/softirq.h>
 #include <xen/keyhandler.h>
 #include <xen/cpu.h>
+#include <xen/pfn.h>
 #include <asm/page.h>
 #include <asm/current.h>
 #include <asm/setup.h>
@@ -141,6 +142,7 @@
                     pfn_to_paddr(xenheap_mfn_start + xenheap_pages + 
domheap_pages));
 
     setup_frametable_mappings(ram_start, ram_end);
+    max_page = PFN_DOWN(ram_end);
 
     /* Add xenheap memory that was not already added to the boot
        allocator. */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.