Skip to content

Commit

Permalink
fix scm.c to make properly with all tool versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xInterlopeRx committed Oct 1, 2012
1 parent 57ed796 commit eb40ed3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/arm/mach-msm/scm.c
Expand Up @@ -173,7 +173,7 @@ static u32 smc(u32 cmd_addr)
__asmeq("%1", "r0")
__asmeq("%2", "r1")
__asmeq("%3", "r2")
"smc #0 @ switch to secure world\n"
".arch_extension sec\n smc #0 @ switch to secure world\n"
: "=r" (r0)
: "r" (r0), "r" (r1), "r" (r2)
: "r3");
Expand Down Expand Up @@ -294,7 +294,7 @@ s32 scm_call_atomic1(u32 svc, u32 cmd, u32 arg1)
__asmeq("%1", "r0")
__asmeq("%2", "r1")
__asmeq("%3", "r2")
"smc #0 @ switch to secure world\n"
".arch_extension sec\n smc #0 @ switch to secure world\n"
: "=r" (r0)
: "r" (r0), "r" (r1), "r" (r2)
: "r3");
Expand Down Expand Up @@ -326,7 +326,7 @@ s32 scm_call_atomic2(u32 svc, u32 cmd, u32 arg1, u32 arg2)
__asmeq("%2", "r1")
__asmeq("%3", "r2")
__asmeq("%4", "r3")
"smc #0 @ switch to secure world\n"
".arch_extension sec\n smc #0 @ switch to secure world\n"
: "=r" (r0)
: "r" (r0), "r" (r1), "r" (r2), "r" (r3));
return r0;
Expand All @@ -353,7 +353,7 @@ s32 scm_call_atomic4_3(u32 svc, u32 cmd, u32 arg1, u32 arg2,
__asmeq("%4", "r1")
__asmeq("%5", "r2")
__asmeq("%6", "r3")
"smc #0 @ switch to secure world\n"
".arch_extension sec\n smc #0 @ switch to secure world\n"
: "=r" (r0), "=r" (r1), "=r" (r2)
: "r" (r0), "r" (r1), "r" (r2), "r" (r3), "r" (r4), "r" (r5));
ret = r0;
Expand Down Expand Up @@ -385,7 +385,7 @@ u32 scm_get_version(void)
__asmeq("%1", "r1")
__asmeq("%2", "r0")
__asmeq("%3", "r1")
"smc #0 @ switch to secure world\n"
".arch_extension sec\n smc #0 @ switch to secure world\n"
: "=r" (r0), "=r" (r1)
: "r" (r0), "r" (r1)
: "r2", "r3");
Expand Down

0 comments on commit eb40ed3

Please sign in to comment.