diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-04-16 15:46:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-05-03 15:05:38 +0200 |
commit | bd9e5ca89e29809561181fddea04af2361f18c4c (patch) | |
tree | 53d8eb85233ba081604f6ff500cfcf7178f8d3a5 /arch/arm/cpu/cache-armv6.S | |
parent | 64a6eb6a38fa5a4511b797a6ac5e50cdbf9dc69d (diff) | |
download | barebox-bd9e5ca89e29809561181fddea04af2361f18c4c.tar.gz barebox-bd9e5ca89e29809561181fddea04af2361f18c4c.tar.xz |
arm: move __mmu_cache_flush to bare_init section
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>
Diffstat (limited to 'arch/arm/cpu/cache-armv6.S')
-rw-r--r-- | arch/arm/cpu/cache-armv6.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/cache-armv6.S b/arch/arm/cpu/cache-armv6.S index e3498bb117..25476d5a29 100644 --- a/arch/arm/cpu/cache-armv6.S +++ b/arch/arm/cpu/cache-armv6.S @@ -31,6 +31,7 @@ __common_mmu_cache_on: mrc p15, 0, r0, c1, c0, 0 @ and read it back to sub pc, lr, r0, lsr #32 @ properly flush pipeline + ENTRY(__mmu_cache_off) #ifdef CONFIG_MMU mrc p15, 0, r0, c1, c0 @@ -42,6 +43,7 @@ ENTRY(__mmu_cache_off) #endif mov pc, lr +.section ".text_bare_init.text" ENTRY(__mmu_cache_flush) mov r1, #0 mcr p15, 0, r1, c7, c14, 0 @ clean+invalidate D @@ -50,6 +52,7 @@ ENTRY(__mmu_cache_flush) mcr p15, 0, r1, c7, c10, 4 @ drain WB mov pc, lr ENDPROC(__mmu_cache_flush) +.section ".text.text" /* * v6_dma_inv_range(start,end) |