diff options
author | Ken Liu <Ken.Liu@arm.com> | 2021-02-24 08:49:51 +0800 |
---|---|---|
committer | Ken Liu <ken.liu@arm.com> | 2021-02-25 06:59:45 +0000 |
commit | 66ca613b7580987f7ae580d7a40c15186ac3b43d (patch) | |
tree | a05e7c208630e19029af025e0d13418cb8b3a0b7 /secure_fw/partitions/psa_proxy | |
parent | 90f102f8dcf33afc4a93e2ede88b1792d7a32279 (diff) | |
download | trusted-firmware-m-66ca613b7580987f7ae580d7a40c15186ac3b43d.tar.gz |
SPM: Refine pool logics
The pool logic is needed by both SPM and partitions so that it needs
to be changed as shared sources. Refine pool logics before changing.
- Do not use 0 size array in structure definition. Also, remove the
workaround structure member around this 0 size array definition.
- Need to provide pool instance while calling the free function. This
saves recording one pool instance in the chunk data structure.
Change-Id: I4e83770a5a7b07d1d46aec85b04d98f40a6f922b
Signed-off-by: Ken Liu <Ken.Liu@arm.com>
Diffstat (limited to 'secure_fw/partitions/psa_proxy')
-rw-r--r-- | secure_fw/partitions/psa_proxy/psa_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/secure_fw/partitions/psa_proxy/psa_proxy.c b/secure_fw/partitions/psa_proxy/psa_proxy.c index 7864ef6849..49347b6f17 100644 --- a/secure_fw/partitions/psa_proxy/psa_proxy.c +++ b/secure_fw/partitions/psa_proxy/psa_proxy.c @@ -40,7 +40,7 @@ static inline psa_handle_t * allocate_forward_handle(void) static inline void deallocate_forward_handle(psa_handle_t *h) { - tfm_pool_free(h); + tfm_pool_free(forward_handle_pool, h); } static psa_status_t forward_psa_call_to_secure_enclave(const psa_msg_t *msg) |