diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:33:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:39 -0500 |
commit | 6c435456dc91ace468b4e9d72ad0e13dafa22a45 (patch) | |
tree | febb56da4b1acb6dfae230290ce5638d3fbcaaab /arch/x86/mm/init_32.c | |
parent | a89780f3b84f9a421e2608580b55f12b3ac4f9c2 (diff) |
x86: add mm parameter to paravirt_alloc_pd
Add mm to paravirt_alloc_pd, partly to make it consistent with
paravirt_alloc_pt, and because later changes will make use of it.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r-- | arch/x86/mm/init_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 04332c09ad1d..98d2acae4f64 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -65,7 +65,7 @@ static pmd_t * __init one_md_table_init(pgd_t *pgd) | |||
65 | if (!(pgd_val(*pgd) & _PAGE_PRESENT)) { | 65 | if (!(pgd_val(*pgd) & _PAGE_PRESENT)) { |
66 | pmd_table = (pmd_t *) alloc_bootmem_low_pages(PAGE_SIZE); | 66 | pmd_table = (pmd_t *) alloc_bootmem_low_pages(PAGE_SIZE); |
67 | 67 | ||
68 | paravirt_alloc_pd(__pa(pmd_table) >> PAGE_SHIFT); | 68 | paravirt_alloc_pd(&init_mm, __pa(pmd_table) >> PAGE_SHIFT); |
69 | set_pgd(pgd, __pgd(__pa(pmd_table) | _PAGE_PRESENT)); | 69 | set_pgd(pgd, __pgd(__pa(pmd_table) | _PAGE_PRESENT)); |
70 | pud = pud_offset(pgd, 0); | 70 | pud = pud_offset(pgd, 0); |
71 | if (pmd_table != pmd_offset(pud, 0)) | 71 | if (pmd_table != pmd_offset(pud, 0)) |
@@ -365,7 +365,7 @@ void __init native_pagetable_setup_start(pgd_t *base) | |||
365 | memset(&base[USER_PTRS_PER_PGD], 0, | 365 | memset(&base[USER_PTRS_PER_PGD], 0, |
366 | KERNEL_PGD_PTRS * sizeof(pgd_t)); | 366 | KERNEL_PGD_PTRS * sizeof(pgd_t)); |
367 | #else | 367 | #else |
368 | paravirt_alloc_pd(__pa(swapper_pg_dir) >> PAGE_SHIFT); | 368 | paravirt_alloc_pd(&init_mm, __pa(base) >> PAGE_SHIFT); |
369 | #endif | 369 | #endif |
370 | } | 370 | } |
371 | 371 | ||