summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/cache-armv4.S
Commit message (Collapse)AuthorAgeFilesLines
* ARM: cache-armv4: Fix wrong sectionSascha Hauer2018-04-041-1/+1
| | | | | | The v4_mmu_cache_on function should be in a section with the same name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Support multiple ARM architecturesSascha Hauer2012-10-131-14/+14
| | | | | | | The different ARM architectures need different cache functions. This patch makes them selectable during runtime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM __mmu_cache_*: Do not clobber registersSascha Hauer2012-08-131-1/+2
| | | | | | | Save/restore the registers used in __mmu_cache_* so that they can be called as regular C functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Separate assembler functions into their own sectionSascha Hauer2012-07-231-1/+6
| | | | | | To let the linker remove unused functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM startup: Do call __mmu_cache_flush during startupSascha Hauer2012-05-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | Traditionally we call __mmu_cache_flush in early startup. There is a problem with armv7 and hierarchical caches though, on these systems __mmu_cache_flush uses the stack. Appearantly this was seldomly a problem, because most of these systems have a ROM bootloader which sets up some stack, but on a special i.MX6 system this failed badly. We should not have to flush caches here. Every sane system should pass control to the bootloader without stale entries in the caches *), so it should be a safe assumption that the cache flush can be removed. Since __mmu_cache_flush is not called from early code anymore we can also move it to the regular text section. Be brave and give it a try. *) omap3 seems to be a exception to this, but this has a cache flush in arch_init_lowlevel already Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* init: introduce __BARE_INIT for .section ".text_bare_init.text"Jean-Christophe PLAGNIOL-VILLARD2010-09-201-1/+2
| | | | | | | and make init.h availlable for assembly too Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: move __mmu_cache_flush to bare_init sectionSascha Hauer2010-05-031-0/+2
| | | | | | | | Instead of having seperate cache flush functions in the startup code we want to call the generic functions. To accomplish this they have to be in the bare_init section. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Add a wrapper around dma_* functionsSascha Hauer2010-03-301-3/+3
| | | | | | This is a preparation to add second level cache support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Use cache functions from kernelSascha Hauer2010-02-011-0/+137
These cache functions have been extracted from arch/arm/boot/compressed/head.S. The old code only worked properly on ARMv4. Tested on ARMv4, ARMv5, ARMv6 hardware. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>