summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Ribeiro <mauro.ribeiro@hardkernel.com>2014-05-15 19:06:09 +0400
committerMauro Ribeiro <mauro.ribeiro@hardkernel.com>2014-05-15 19:06:09 +0400
commitae1bb3c3ea8812171215ac23f818467dfbb02f5e (patch)
tree3dea59fd0af062ce34198d52fb214532a7b0d7b9
parent2865d540b61283d9bfb78b57482a06330d7a3685 (diff)
parenta0a6190a5e1e0cd5665be446d000161bb30cd11e (diff)
downloadu-boot-ae1bb3c3ea8812171215ac23f818467dfbb02f5e.tar.xz
Merge pull request #8 from tobetter/odroid-v2010.12
Adding to build ".arch_extension sec" conditionally
-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)