diff options
author | Scott Wood <scottwood@freescale.com> | 2015-04-16 02:40:23 +0200 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-08-08 05:59:20 +0200 |
commit | 2f7d2b74a9dd9140053f143e1c94da0fef3c1109 (patch) | |
tree | cc90ce077e6bfa19440953c1914b78e690182403 /arch/powerpc/include/asm/cacheflush.h | |
parent | powerpc: add support for csum_add() (diff) | |
download | linux-2f7d2b74a9dd9140053f143e1c94da0fef3c1109.tar.xz linux-2f7d2b74a9dd9140053f143e1c94da0fef3c1109.zip |
powerpc/mm: Don't call __flush_dcache_icache_phys() with PA>VA
__flush_dcache_icache_phys() requires the ability to access the
memory with the MMU disabled, which means that on a 32-bit system
any memory above 4 GiB is inaccessible. In particular, mpc86xx is
32-bit and can have more than 4 GiB of RAM.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/cacheflush.h')
-rw-r--r-- | arch/powerpc/include/asm/cacheflush.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/cacheflush.h b/arch/powerpc/include/asm/cacheflush.h index 30b35fff2dea..6229e6b6037b 100644 --- a/arch/powerpc/include/asm/cacheflush.h +++ b/arch/powerpc/include/asm/cacheflush.h @@ -40,7 +40,12 @@ extern void __flush_dcache_icache(void *page_va); extern void flush_dcache_icache_page(struct page *page); #if defined(CONFIG_PPC32) && !defined(CONFIG_BOOKE) extern void __flush_dcache_icache_phys(unsigned long physaddr); -#endif /* CONFIG_PPC32 && !CONFIG_BOOKE */ +#else +static inline void __flush_dcache_icache_phys(unsigned long physaddr) +{ + BUG(); +} +#endif extern void flush_dcache_range(unsigned long start, unsigned long stop); #ifdef CONFIG_PPC32 |