diff options
| author | Wolfgang Denk <wd@denx.de> | 2010-06-18 15:55:15 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2010-06-18 16:01:07 +0200 | 
| commit | cd040a4953e55efe89dc3af4acf0302d5923026f (patch) | |
| tree | ecd007a9ed1153e62beda2b0a29ab1e1521edd0d | |
| parent | 1f241263e088a71b8f33f87b03a37c5418d41e2e (diff) | |
| download | olio-uboot-2014.01-cd040a4953e55efe89dc3af4acf0302d5923026f.tar.xz olio-uboot-2014.01-cd040a4953e55efe89dc3af4acf0302d5923026f.zip | |
arch/arm/cpu/arm_cortexa8/omap3/cache.S: make build with older tools
The push / pop instructions used in this file are available only with
more recent tool chains:
cache.S: Assembler messages:
cache.S:133: Error: bad instruction `push {r0,r1,r2,lr}'
cache.S:160: Error: bad instruction `pop {r1,r2,r3,pc}'
cache.S:164: Error: bad instruction `push {r0,r1,r2,lr}'
cache.S:191: Error: bad instruction `pop {r1,r2,r3,pc}'
Change push/pop into stmfd/ldmfd instructions to support older
versions of binutils as well.
I verified that the modified source code generates exactly the same
binary code.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rix <tom@bumblecow.com>
| -rw-r--r-- | arch/arm/cpu/arm_cortexa8/omap3/cache.S | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/arch/arm/cpu/arm_cortexa8/omap3/cache.S b/arch/arm/cpu/arm_cortexa8/omap3/cache.S index 0f6381535..4b65ac58a 100644 --- a/arch/arm/cpu/arm_cortexa8/omap3/cache.S +++ b/arch/arm/cpu/arm_cortexa8/omap3/cache.S @@ -130,7 +130,7 @@ finished_inval:  l2_cache_enable: -	push	{r0, r1, r2, lr} +	stmfd	r13!, {r0, r1, r2, lr}  	@ ES2 onwards we can disable/enable L2 ourselves  	bl	get_cpu_rev  	cmp	r0, #CPU_3XX_ES20 @@ -157,11 +157,11 @@ l2_cache_enable_EARLIER_THAN_ES2:  	mov	ip, r3  	str	r3, [sp, #4]  l2_cache_enable_END: -	pop	{r1, r2, r3, pc} +	ldmfd	r13!, {r1, r2, r3, pc}  l2_cache_disable: -	push	{r0, r1, r2, lr} +	stmfd	r13!, {r0, r1, r2, lr}  	@ ES2 onwards we can disable/enable L2 ourselves  	bl	get_cpu_rev  	cmp	r0, #CPU_3XX_ES20 @@ -188,4 +188,4 @@ l2_cache_disable_EARLIER_THAN_ES2:  	mov	ip, r3  	str	r3, [sp, #4]  l2_cache_disable_END: -	pop	{r1, r2, r3, pc} +	ldmfd	r13!, {r1, r2, r3, pc} |