diff options
author | Marc Moreno Berengue <marc.morenoberengue@arm.com> | 2018-10-10 14:18:17 +0100 |
---|---|---|
committer | Miklos Balint <miklos.balint@arm.com> | 2018-11-13 16:43:05 +0100 |
commit | 2b328e94bcae2d762169bd30f3d7ebc0c2880b5b (patch) | |
tree | 813416a783e9e90e4037bc8dd8910c0cb31e7289 /interface/include/tfm_nspm_svc_handler.h | |
parent | 85ee922eff4f8a042effff1804e5cee8aeffd6f1 (diff) | |
download | trusted-firmware-m-2b328e94bcae2d762169bd30f3d7ebc0c2880b5b.tar.gz |
NSPM: Update NSPM mechanism to get thread name
This patch updates the non-secure partition management (NSPM) to
use the public RTX osThreadGetName function to get the thread name
rather than use internal RTX functions.
It also gets the client ID from the thread name and passes it into the
SVC function to register the client ID to be assigned to the current
TZ context.
Change-Id: I269d2d09f21615e1fa9fc57d5c0239923a5f9fca
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
Diffstat (limited to 'interface/include/tfm_nspm_svc_handler.h')
-rw-r--r-- | interface/include/tfm_nspm_svc_handler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interface/include/tfm_nspm_svc_handler.h b/interface/include/tfm_nspm_svc_handler.h index 785fda6098..73f75a95e1 100644 --- a/interface/include/tfm_nspm_svc_handler.h +++ b/interface/include/tfm_nspm_svc_handler.h @@ -17,9 +17,11 @@ extern "C" { /** * \brief Reports the client ID of this task to TF-M (SVC function) * + * \param [in] client_id Client ID to register. + * * \return Returns 1 if the client ID was successfully reported 0 otherwise */ -uint32_t tfm_nspm_svc_register_client_id(void); +uint32_t tfm_nspm_svc_register_client_id(uint32_t client_id); #ifdef __cplusplus } |