summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <dongjin.kim@agreeyamobility.net>2014-05-15 08:11:22 +0400
committerDongjin Kim <dongjin.kim@agreeyamobility.net>2014-05-15 08:11:22 +0400
commita0a6190a5e1e0cd5665be446d000161bb30cd11e (patch)
tree3dea59fd0af062ce34198d52fb214532a7b0d7b9
parent2865d540b61283d9bfb78b57482a06330d7a3685 (diff)
downloadu-boot-a0a6190a5e1e0cd5665be446d000161bb30cd11e.tar.xz
Adding to build ".arch_extension sec" conditionally
Added preprocessor to check gcc version for ".arch_extension sec" since gcc-4.6 support it. Signed-off-by: Dongjin Kim <dongjin.kim@agreeyamobility.net>
-rw-r--r--board/samsung/smdk4212/smc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/samsung/smdk4212/smc.c b/board/samsung/smdk4212/smc.c
index 18c58da7b1..201f1ed4c3 100644
--- a/board/samsung/smdk4212/smc.c
+++ b/board/samsung/smdk4212/smc.c
@@ -90,7 +90,9 @@ static inline u32 exynos_smc(u32 cmd, u32 arg1, u32 arg2, u32 arg3)
register u32 reg3 __asm__("r3") = arg3;
__asm__ volatile (
+#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
".arch_extension sec\n"
+#endif
"smc 0\n"
: "+r"(reg0), "+r"(reg1), "+r"(reg2), "+r"(reg3)
@@ -105,7 +107,9 @@ static inline u32 exynos_smc_read(u32 cmd)
register u32 reg1 __asm__("r1") = 0;
__asm__ volatile (
+#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
".arch_extension sec\n"
+#endif
"smc 0\n"
: "+r"(reg0), "+r"(reg1)