diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-06-20 12:05:02 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-06-20 13:13:13 +0100 |
commit | 4d4ceb598c168c86d74ec535868e7bfc3d18cee4 (patch) | |
tree | 4083fe303d72a5868f02affa08246ee82d84b39e /include/services | |
parent | d135ad788416493e2b981355a685afeca99bb18f (diff) |
SPM: Allow entering the SP without needing a SMC
It may be needed to enter the Secure Partition through other means than
an MM_COMMUNICATE SMC. This patch enables this behaviour by extracting
the necessary code from mm_communicate() and allowing other parts of the
code to use it.
Change-Id: I59f6638d22d9c9d0baff0984f39d056298a8dc8e
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/services')
-rw-r--r-- | include/services/spm_svc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/services/spm_svc.h b/include/services/spm_svc.h index 8f872c39..0200992c 100644 --- a/include/services/spm_svc.h +++ b/include/services/spm_svc.h @@ -74,6 +74,9 @@ uint64_t spm_smc_handler(uint32_t smc_fid, void *handle, uint64_t flags); +/* Helper to enter a Secure Partition */ +uint64_t spm_sp_call(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3); + #endif /* __ASSEMBLY__ */ #endif /* __SPM_SVC_H__ */ |