From: Jeremy Fitzhardinge Date: Mon, 16 Jun 2008 21:54:51 +0000 (-0700) Subject: xen: set max_pfn_mapped X-Git-Tag: v2.6.27-rc1~1106^2~223 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=88a6846c70ad6bf33a545d554ace801d69e8a1a5;p=linux-2.6-omap-h63xx.git xen: set max_pfn_mapped Signed-off-by: Jeremy Fitzhardinge Cc: Yinghai Lu Cc: the arch/x86 maintainers Signed-off-by: Ingo Molnar Cc: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 316623cf411..76ad1efaf09 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1304,6 +1304,7 @@ asmlinkage void __init xen_start_kernel(void) init_pg_tables_start = __pa(pgd); init_pg_tables_end = __pa(pgd) + xen_start_info->nr_pt_frames*PAGE_SIZE; + max_pfn_mapped = (init_pg_tables_end + 512*1024) >> PAGE_SHIFT; init_mm.pgd = pgd; /* use the Xen pagetables to start */