diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-07-08 18:06:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-16 04:56:04 -0400 |
commit | 851fa3c4e7b50d6a946d8b4c0a68683b5e56b2f1 (patch) | |
tree | 736677529dac0957ac28d5bdb75c32733b061003 /arch | |
parent | ad55db9fed6d6cd09333045945cb03ba2c070085 (diff) |
xen: define set_pte from the outset
We need set_pte to work from a relatively early point, so enable it
from the start.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Stephen Tweedie <sct@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/xen/enlighten.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index eaab6c9b4a84..c5f0b40aa39d 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -845,9 +845,6 @@ static __init void xen_pagetable_setup_start(pgd_t *base) | |||
845 | pgd_t *xen_pgd = (pgd_t *)xen_start_info->pt_base; | 845 | pgd_t *xen_pgd = (pgd_t *)xen_start_info->pt_base; |
846 | int i; | 846 | int i; |
847 | 847 | ||
848 | /* special set_pte for pagetable initialization */ | ||
849 | pv_mmu_ops.set_pte = xen_set_pte_init; | ||
850 | |||
851 | init_mm.pgd = base; | 848 | init_mm.pgd = base; |
852 | /* | 849 | /* |
853 | * copy top-level of Xen-supplied pagetable into place. This | 850 | * copy top-level of Xen-supplied pagetable into place. This |
@@ -1174,7 +1171,7 @@ static const struct pv_mmu_ops xen_mmu_ops __initdata = { | |||
1174 | .kmap_atomic_pte = xen_kmap_atomic_pte, | 1171 | .kmap_atomic_pte = xen_kmap_atomic_pte, |
1175 | #endif | 1172 | #endif |
1176 | 1173 | ||
1177 | .set_pte = NULL, /* see xen_pagetable_setup_* */ | 1174 | .set_pte = xen_set_pte_init, |
1178 | .set_pte_at = xen_set_pte_at, | 1175 | .set_pte_at = xen_set_pte_at, |
1179 | .set_pmd = xen_set_pmd_hyper, | 1176 | .set_pmd = xen_set_pmd_hyper, |
1180 | 1177 | ||