summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/cache.c
Commit message (Collapse)AuthorAgeFilesLines
* arm: cpu: add arm64 specific codeRaphael Poggi2016-07-061-0/+19
| | | | | | | | | | This patch adds arm64 specific codes, which are: - exception support - cache support - rework Makefile to support arm64 Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: l2x0: Flush cache before disabling itSascha Hauer2015-08-081-0/+2
| | | | | | Otherwise entries may still be in the cache and never reach memory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove unused variableSascha Hauer2015-02-111-2/+0
| | | | | | arm_architecture is unused, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Do not use BUG() in pbl codeSascha Hauer2014-01-291-1/+1
| | | | | | | BUG() uses printf which is not available in pbl, so do not use it here. This becomes necessary when multiple CPU architectures are compiled in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: cache: do not crash when the MMU isn't yet setupAndre Heider2013-10-221-6/+12
| | | | | | | | | | | | | | | | | 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>
* ARM: invalidate data caches during early initSascha Hauer2013-05-231-0/+21
| | | | | | | | | | Some SoCs come up with invalid entries in the data cache. This can lead to memory corruption when we enable them later, so invalidate the caches early. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: add early mmu cache flush function and use it in setup_cSascha Hauer2013-03-041-0/+33
| | | | | | | | Since recently with MMU_EARLY support it may happen that setup_c runs with data caches enabled, so we have to make sure the caches are flushed before we jump to the new binary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Support multiple ARM architecturesSascha Hauer2012-10-131-0/+103
The different ARM architectures need different cache functions. This patch makes them selectable during runtime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>