summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/mm/init.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/init.c
parent83a92529c1789f86481190743a6bb09f31ec39a8 (diff)
downloadop-kernel-dev-419387612c03fce2ca6d5a3d6aac3dae42069264.zip
op-kernel-dev-419387612c03fce2ca6d5a3d6aac3dae42069264.tar.gz
microblaze: Introduce fixmap
Fixmap will be used for highmem support. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/mm/init.c')
-rw-r--r--arch/microblaze/mm/init.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c
index 2253e12..af87fd7 100644
--- a/arch/microblaze/mm/init.c
+++ b/arch/microblaze/mm/init.c
@@ -24,6 +24,7 @@
#include <asm/pgalloc.h>
#include <asm/sections.h>
#include <asm/tlb.h>
+#include <asm/fixmap.h>
/* Use for MMU and noMMU because of PCI generic code */
int mem_init_done;
@@ -54,6 +55,13 @@ unsigned long lowmem_size;
static void __init paging_init(void)
{
unsigned long zones_size[MAX_NR_ZONES];
+#ifdef CONFIG_MMU
+ int idx;
+
+ /* Setup fixmaps */
+ for (idx = 0; idx < __end_of_fixed_addresses; idx++)
+ clear_fixmap(idx);
+#endif
/* Clean every zones */
memset(zones_size, 0, sizeof(zones_size));
@@ -316,12 +324,9 @@ asmlinkage void __init mmu_init(void)
/* Map in all of RAM starting at CONFIG_KERNEL_START */
mapin_ram();
-#ifdef CONFIG_HIGHMEM_START_BOOL
- ioremap_base = CONFIG_HIGHMEM_START;
-#else
- ioremap_base = 0xfe000000UL; /* for now, could be 0xfffff000 */
-#endif /* CONFIG_HIGHMEM_START_BOOL */
- ioremap_bot = ioremap_base;
+ /* Extend vmalloc and ioremap area as big as possible */
+ ioremap_base = ioremap_bot = FIXADDR_START;
+
/* Initialize the context management stuff */
mmu_context_init();
OpenPOWER on IntegriCloud