summaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/leon_mm.c
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2011-09-08 05:11:15 +0200
committerDavid S. Miller <davem@davemloft.net>2011-10-07 21:08:01 +0200
commitf22ed71cd60210d2f476986c0266004e4db45f34 (patch)
treeef1b0fd170339ac2fd6bea918a7e20498f61ea16 /arch/sparc/mm/leon_mm.c
parentMerge git://github.com/davem330/net (diff)
downloadlinux-f22ed71cd60210d2f476986c0266004e4db45f34.tar.xz
linux-f22ed71cd60210d2f476986c0266004e4db45f34.zip
sparc32,leon: SRMMU MMU Table probe fix
The LEON MMU Model (SRMMU) does not implement MMu Table probing in hardware, instead it is implemented in software. However the software implementation does not return the PTE as it should which always results in INVALID entires and the PROM mappings are not inherited as they should during startup. The following patch removes the masking of the PTE. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/leon_mm.c')
-rw-r--r--arch/sparc/mm/leon_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/mm/leon_mm.c b/arch/sparc/mm/leon_mm.c
index e485a6804998..13c2169822a8 100644
--- a/arch/sparc/mm/leon_mm.c
+++ b/arch/sparc/mm/leon_mm.c
@@ -162,7 +162,7 @@ ready:
printk(KERN_INFO "swprobe: padde %x\n", paddr_calc);
if (paddr)
*paddr = paddr_calc;
- return paddrbase;
+ return pte;
}
void leon_flush_icache_all(void)