aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-08-26 19:16:28 -0400
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-10-22 15:57:19 -0400
commitf0991802bb4368e33848e7f823caa487d23555fb (patch)
tree2a03334fb07fb85136c3bd3851f10e25cd406e22 /arch
parenta2e875298729540300a9a0324ee66e3b7883a912 (diff)
xen: use early_brk for level2_kernel_pgt
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/xen/mmu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 151813d97552..71c6af6c89a5 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -1843,13 +1843,15 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
1843 return pgd; 1843 return pgd;
1844} 1844}
1845#else /* !CONFIG_X86_64 */ 1845#else /* !CONFIG_X86_64 */
1846static pmd_t level2_kernel_pgt[PTRS_PER_PMD] __page_aligned_bss; 1846static RESERVE_BRK_ARRAY(pmd_t, level2_kernel_pgt, PTRS_PER_PMD);
1847 1847
1848__init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, 1848__init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
1849 unsigned long max_pfn) 1849 unsigned long max_pfn)
1850{ 1850{
1851 pmd_t *kernel_pmd; 1851 pmd_t *kernel_pmd;
1852 1852
1853 level2_kernel_pgt = extend_brk(sizeof(pmd_t *) * PTRS_PER_PMD, PAGE_SIZE);
1854
1853 max_pfn_mapped = PFN_DOWN(__pa(xen_start_info->pt_base) + 1855 max_pfn_mapped = PFN_DOWN(__pa(xen_start_info->pt_base) +
1854 xen_start_info->nr_pt_frames * PAGE_SIZE + 1856 xen_start_info->nr_pt_frames * PAGE_SIZE +
1855 512*1024); 1857 512*1024);