summaryrefslogtreecommitdiff
path: root/services/std_svc/std_svc_setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'services/std_svc/std_svc_setup.c')
-rw-r--r--services/std_svc/std_svc_setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/std_svc/std_svc_setup.c b/services/std_svc/std_svc_setup.c
index f0cbd627e..bdf40bcc1 100644
--- a/services/std_svc/std_svc_setup.c
+++ b/services/std_svc/std_svc_setup.c
@@ -145,8 +145,8 @@ static uintptr_t std_svc_smc_handler(uint32_t smc_fid,
/* If we have an SPMC at EL3 allow handling first.
* SPMC will call through to SPMD if required.
*/
- if (is_caller_secure(flags) == SMC_FROM_SECURE) {
- return spmc_smc_handler(SECURE, smc_fid, x1, x2, x3, x4, cookie, handle, flags);
+ if (is_caller_secure(flags)) {
+ return spmc_smc_handler(smc_fid, is_caller_secure(flags), x1, x2, x3, x4, cookie, handle, flags);
}
#endif
return spmd_smc_handler(smc_fid, x1, x2, x3, x4, cookie,