aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/pgtable.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-06-17 14:41:54 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-20 09:09:51 -0400
commit7c7e6e07e2a7c0d2d96389f4f0540e44a80ecdaa (patch)
tree5d139f94cae6c1d0ff829c5e9eafd8ee96582712 /arch/x86/mm/pgtable.c
parent944256e00a5466ae6b7a11fdb3a47d092f2f62c1 (diff)
x86: unify __set_fixmap
In both cases, I went with the 32-bit behaviour. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pgtable.c')
-rw-r--r--arch/x86/mm/pgtable.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c
index 50159764f694..3ebebe480b53 100644
--- a/arch/x86/mm/pgtable.c
+++ b/arch/x86/mm/pgtable.c
@@ -274,3 +274,17 @@ int ptep_clear_flush_young(struct vm_area_struct *vma,
274 274
275 return young; 275 return young;
276} 276}
277
278int fixmaps_set;
279
280void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags)
281{
282 unsigned long address = __fix_to_virt(idx);
283
284 if (idx >= __end_of_fixed_addresses) {
285 BUG();
286 return;
287 }
288 set_pte_pfn(address, phys >> PAGE_SHIFT, flags);
289 fixmaps_set++;
290}