From 4d4ceb598c168c86d74ec535868e7bfc3d18cee4 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Wed, 20 Jun 2018 12:05:02 +0100 Subject: 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 --- include/services/spm_svc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/services') diff --git a/include/services/spm_svc.h b/include/services/spm_svc.h index 8f872c39e..0200992c1 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__ */ -- cgit v1.2.3