Skip to content
Snippets Groups Projects
Commit f22ed71c authored by Daniel Hellstrom's avatar Daniel Hellstrom Committed by David S. Miller
Browse files

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: default avatarDaniel Hellstrom <daniel@gaisler.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3ee72ca9
No related branches found
No related tags found
No related merge requests found
...@@ -280,7 +280,7 @@ static inline unsigned long srmmu_hwprobe(unsigned long vaddr) ...@@ -280,7 +280,7 @@ static inline unsigned long srmmu_hwprobe(unsigned long vaddr)
return retval; return retval;
} }
#else #else
#define srmmu_hwprobe(addr) (srmmu_swprobe(addr, 0) & SRMMU_PTE_PMASK) #define srmmu_hwprobe(addr) srmmu_swprobe(addr, 0)
#endif #endif
static inline int static inline int
......
...@@ -162,7 +162,7 @@ ready: ...@@ -162,7 +162,7 @@ ready:
printk(KERN_INFO "swprobe: padde %x\n", paddr_calc); printk(KERN_INFO "swprobe: padde %x\n", paddr_calc);
if (paddr) if (paddr)
*paddr = paddr_calc; *paddr = paddr_calc;
return paddrbase; return pte;
} }
void leon_flush_icache_all(void) void leon_flush_icache_all(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment