summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/mm/pgtable.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-12-15 14:33:32 +0100
committerMichal Simek <monstr@monstr.eu>2012-03-23 09:28:11 +0100
commit419387612c03fce2ca6d5a3d6aac3dae42069264 (patch)
tree8f8a9b847513253160a0635d774b7bd01434240e /arch/microblaze/mm/pgtable.c
parent83a92529c1789f86481190743a6bb09f31ec39a8 (diff)
downloadlinux-419387612c03fce2ca6d5a3d6aac3dae42069264.tar.gz
linux-419387612c03fce2ca6d5a3d6aac3dae42069264.tar.bz2
linux-419387612c03fce2ca6d5a3d6aac3dae42069264.zip
microblaze: Introduce fixmap
Fixmap will be used for highmem support. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/mm/pgtable.c')
-rw-r--r--arch/microblaze/mm/pgtable.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/microblaze/mm/pgtable.c b/arch/microblaze/mm/pgtable.c
index 68f5c01e4ad1..84905da83cb7 100644
--- a/arch/microblaze/mm/pgtable.c
+++ b/arch/microblaze/mm/pgtable.c
@@ -37,6 +37,7 @@
#include <linux/io.h>
#include <asm/mmu.h>
#include <asm/sections.h>
+#include <asm/fixmap.h>
#define flush_HPTE(X, va, pg) _tlbie(va)
@@ -249,3 +250,13 @@ __init_refok pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
}
return pte;
}
+
+void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t flags)
+{
+ unsigned long address = __fix_to_virt(idx);
+
+ if (idx >= __end_of_fixed_addresses)
+ BUG();
+
+ map_page(address, phys, pgprot_val(flags));
+}