summaryrefslogtreecommitdiff
path: root/include/bl31/runtime_svc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bl31/runtime_svc.h')
-rw-r--r--include/bl31/runtime_svc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/bl31/runtime_svc.h b/include/bl31/runtime_svc.h
index 6d708967..0f510f76 100644
--- a/include/bl31/runtime_svc.h
+++ b/include/bl31/runtime_svc.h
@@ -135,9 +135,12 @@
typedef int32_t (*rt_svc_init_t)(void);
/* Convenience macros to return from SMC handler */
+#define SMC_RET0(_h) { \
+ return (uint64_t) (_h); \
+}
#define SMC_RET1(_h, _x0) { \
write_ctx_reg(get_gpregs_ctx(_h), CTX_GPREG_X0, (_x0)); \
- return _x0; \
+ SMC_RET0(_h); \
}
#define SMC_RET2(_h, _x0, _x1) { \
write_ctx_reg(get_gpregs_ctx(_h), CTX_GPREG_X1, (_x1)); \