vserver 1.9.3
[linux-2.6.git] / arch / ppc / mm / 4xx_mmu.c
index 6066ff3..a7f6161 100644 (file)
@@ -52,6 +52,7 @@
 #include <asm/setup.h>
 #include "mmu_decl.h"
 
+extern int __map_without_ltlbs;
 /*
  * MMU_init_hw does the chip-specific initialization of the MMU hardware.
  */
@@ -102,6 +103,10 @@ unsigned long __init mmu_mapin_ram(void)
        p = PPC_MEMSTART;
        s = 0;
 
+       if (__map_without_ltlbs) {
+               return s;
+       }
+
        while (s <= (total_lowmem - LARGE_PAGE_SIZE_16M)) {
                pmd_t *pmdp;
                unsigned long val = p | _PMD_SIZE_16M | _PAGE_HWEXEC | _PAGE_HWWRITE;