diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2008-01-30 07:33:20 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:20 -0500 |
commit | f95f2f7b9d7a3da79a833a8fd78a5154cc4b3107 (patch) | |
tree | 87ad78932cd4a5aef2b811c44776ebb289550d41 /arch/x86/kernel/paravirt.c | |
parent | d8dd8eec57254adac48e46c6d191cb24161d8b4d (diff) |
x86: fill in missing pv_mmu_ops entries for PAGETABLE_LEVELS >= 3
This finally makes paravirt-ops able to compile and boot under x86_64.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/paravirt.c')
-rw-r--r-- | arch/x86/kernel/paravirt.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 37f38b71c50a..075962cc75ab 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c | |||
@@ -398,16 +398,23 @@ struct pv_mmu_ops pv_mmu_ops = { | |||
398 | .kmap_atomic_pte = kmap_atomic, | 398 | .kmap_atomic_pte = kmap_atomic, |
399 | #endif | 399 | #endif |
400 | 400 | ||
401 | #if PAGETABLE_LEVELS >= 3 | ||
401 | #ifdef CONFIG_X86_PAE | 402 | #ifdef CONFIG_X86_PAE |
402 | .set_pte_atomic = native_set_pte_atomic, | 403 | .set_pte_atomic = native_set_pte_atomic, |
403 | .set_pte_present = native_set_pte_present, | 404 | .set_pte_present = native_set_pte_present, |
404 | .set_pud = native_set_pud, | ||
405 | .pte_clear = native_pte_clear, | 405 | .pte_clear = native_pte_clear, |
406 | .pmd_clear = native_pmd_clear, | 406 | .pmd_clear = native_pmd_clear, |
407 | 407 | #endif | |
408 | .set_pud = native_set_pud, | ||
408 | .pmd_val = native_pmd_val, | 409 | .pmd_val = native_pmd_val, |
409 | .make_pmd = native_make_pmd, | 410 | .make_pmd = native_make_pmd, |
411 | |||
412 | #if PAGETABLE_LEVELS == 4 | ||
413 | .pud_val = native_pud_val, | ||
414 | .make_pud = native_make_pud, | ||
415 | .set_pgd = native_set_pgd, | ||
410 | #endif | 416 | #endif |
417 | #endif /* PAGETABLE_LEVELS >= 3 */ | ||
411 | 418 | ||
412 | .pte_val = native_pte_val, | 419 | .pte_val = native_pte_val, |
413 | .pgd_val = native_pgd_val, | 420 | .pgd_val = native_pgd_val, |