omap4: Fix build break when used with gcc-4.4.1 (2009-q3)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, April 27, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/df571c4ab32da9bc05a7db98516fc06ef3cdc5d1
Commit:     df571c4ab32da9bc05a7db98516fc06ef3cdc5d1
Parent:     519e61666f4030426fc539d4e7102dc2bad41113
Author:     Richard Woodruff <r-woodruff2@ti.com>
AuthorDate: Wed Apr 7 07:47:21 2010 +0000
Committer:  Tony Lindgren <tony@atomide.com>
CommitDate: Fri Apr 23 15:35:11 2010 -0700

    omap4: Fix build break when used with gcc-4.4.1 (2009-q3)
    
    This patch adds  argument to smc calls as gcc-4.4.1 requires it
    otherwise the build breaks with 2009-q3 toolchanin.
    
    arch/arm/mach-omap2/omap-headsmp.S: Assembler messages:
    arch/arm/mach-omap2/omap-headsmp.S:36: Error: missing expression -- `smc'
    arch/arm/mach-omap2/omap-headsmp.S:55: Error: missing expression -- `smc'
    arch/arm/mach-omap2/omap-headsmp.S:63: Error: missing expression -- `smc'
    make[1]: *** [arch/arm/mach-omap2/omap-headsmp.o] Error 1
    
    Signed-off-by: Richard Woodruff <r-woodruff2@ti.com>
    Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/mach-omap2/omap-headsmp.S |    6 +++---
 arch/arm/mach-omap2/omap44xx-smc.S |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/omap-headsmp.S b/arch/arm/mach-omap2/omap-headsmp.S
index aa3f65c..ef0e7a0 100644
--- a/arch/arm/mach-omap2/omap-headsmp.S
+++ b/arch/arm/mach-omap2/omap-headsmp.S
@@ -33,7 +33,7 @@
 ENTRY(omap_secondary_startup)
 hold:	ldr	r12,=0x103
 	dsb
-	smc				@ read from AuxCoreBoot0
+	smc	#0			@ read from AuxCoreBoot0
 	mov	r0, r0, lsr #9
 	mrc	p15, 0, r4, c0, c0, 5
 	and	r4, r4, #0x0f
@@ -52,7 +52,7 @@ ENTRY(omap_modify_auxcoreboot0)
 	stmfd   sp!, {r1-r12, lr}
 	ldr	r12, =0x104
 	dsb
-	smc
+	smc	#0
 	ldmfd   sp!, {r1-r12, pc}
 END(omap_modify_auxcoreboot0)
 
@@ -60,6 +60,6 @@ ENTRY(omap_auxcoreboot_addr)
 	stmfd   sp!, {r2-r12, lr}
 	ldr	r12, =0x105
 	dsb
-	smc
+	smc	#0
 	ldmfd   sp!, {r2-r12, pc}
 END(omap_auxcoreboot_addr)
diff --git a/arch/arm/mach-omap2/omap44xx-smc.S b/arch/arm/mach-omap2/omap44xx-smc.S
index 89bb2b1..f61c777 100644
--- a/arch/arm/mach-omap2/omap44xx-smc.S
+++ b/arch/arm/mach-omap2/omap44xx-smc.S
@@ -27,6 +27,6 @@ ENTRY(omap_smc1)
 	mov	r12, r0
 	mov 	r0, r1
 	dsb
-	smc
+	smc	#0
 	ldmfd   sp!, {r2-r12, pc}
 END(omap_smc1)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
omap4: Fix build break when used with gcc-4.4.1 (2009-q3), Linux Kernel Mailing ..., (Tue Apr 27, 9:59 am)