summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)