9
0
Fork 0
barebox/arch/arm
Andre Heider 0fdd91d92b ARM: cache: do not crash when the MMU isn't yet setup
Drivers currently cannot implement explicit cache handling and rely on
running the same code before and after mmu_initcall() without crashing.

Depending on the chosen config options, the cache functions are not yet
setup and using them early on ends in a null pointer dereference.

The RPi's mailbox driver is such a case; it requires cache handling once
the MMU is fully set up and yet the RPi setup needs to use the driver to
get the memory size before mem_initcall() and hence mmu_initcall().

Fix this by checking the cache_fns pointer before dereferencing it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-10-22 15:28:58 +02:00
..
boards ARM: rpi: add SD card environment support 2013-10-16 09:45:31 +02:00
configs ARM: rpi: Update defconfig 2013-10-16 09:39:30 +02:00
cpu ARM: cache: do not crash when the MMU isn't yet setup 2013-10-22 15:28:58 +02:00
dts Merge branch 'for-next/tegra' 2013-10-07 08:02:36 +02:00
include/asm ARM: invalidate caches thoroughly 2013-09-23 08:40:31 +02:00
lib environment variables: introduce new helpers 2013-09-30 10:28:52 +02:00
mach-at91 at91: fix typo in Kconfig description 2013-10-15 08:37:24 +02:00
mach-bcm2835 Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
mach-clps711x Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
mach-ep93xx Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
mach-highbank Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
mach-imx Merge branch 'for-next/omap' 2013-09-05 10:40:04 +02:00
mach-mvebu Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
mach-mxs imx28-regs: i.MX28 has 2 USB controllers 2013-09-11 08:32:20 +02:00
mach-netx Set model and hostname at boardlevel 2013-08-16 08:40:55 +02:00
mach-nomadik Set model and hostname at boardlevel 2013-08-16 08:40:55 +02:00
mach-omap Merge branch 'for-next/omap' 2013-10-07 08:00:39 +02:00
mach-pxa Set model and hostname at boardlevel 2013-08-16 08:40:55 +02:00
mach-samsung Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
mach-socfpga ARM: SoCFPGA: Add EBV SoCrates board support 2013-09-23 08:40:32 +02:00
mach-tegra tegra: switch to multi image 2013-10-02 10:24:05 +02:00
mach-versatile clk: remove unused __clk_[get|put] 2013-04-03 17:22:11 +02:00
mach-vexpress Set model and hostname at boardlevel 2013-08-16 08:40:55 +02:00
mach-zynq Set model and hostname at boardlevel 2013-08-16 08:40:55 +02:00
pbl ARM: PBL: fix binary size 2013-09-18 09:17:13 +02:00
tools arm: Update mach-types 2013-09-27 10:56:37 +02:00
Kconfig Merge branch 'for-next/tegra' 2013-10-07 08:02:36 +02:00
Makefile Merge branch 'for-next/socfpga' 2013-10-07 08:02:24 +02:00
mach-arm.dox fix path specs in arch/arm/mach-arm.dox 2010-01-04 11:11:55 +01:00