]> begriffs open source - freertos/commit
Pre-allocate secure-side context structures
authorGaurav Aggarwal <aggarg@amazon.com>
Wed, 18 Aug 2021 23:21:55 +0000 (16:21 -0700)
committerGaurav Aggarwal <aggarg@amazon.com>
Wed, 18 Aug 2021 23:21:55 +0000 (16:21 -0700)
commit66466793d5baf1e42c1a92d7a9c3f7d69c24662f
treea4a817ef692d41c88ceab593fc3a91247c3777d2
parent9c048e0c71ee43630394981a86f5265bc57131e4
Pre-allocate secure-side context structures

This commit improves ARMv8-M security by pre-allocating secure-side task
context structures and changing how tasks reference a secure-side
context structure when calling a secure function. The new configuration
constant secureconfigMAX_SECURE_CONTEXTS sets the number of secure
context structures to pre-allocate. secureconfigMAX_SECURE_CONTEXTS
defaults to 8 if left undefined.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
27 files changed:
portable/ARMv8M/secure/context/portable/GCC/ARM_CM23/secure_context_port.c
portable/ARMv8M/secure/context/portable/GCC/ARM_CM33/secure_context_port.c
portable/ARMv8M/secure/context/portable/IAR/ARM_CM23/secure_context_port.c [deleted file]
portable/ARMv8M/secure/context/portable/IAR/ARM_CM23/secure_context_port_asm.s
portable/ARMv8M/secure/context/portable/IAR/ARM_CM33/secure_context_port.c [deleted file]
portable/ARMv8M/secure/context/portable/IAR/ARM_CM33/secure_context_port_asm.s
portable/ARMv8M/secure/context/secure_context.c
portable/ARMv8M/secure/context/secure_context.h
portable/ARMv8M/secure/heap/secure_heap.c
portable/GCC/ARM_CM23/secure/secure_context.c
portable/GCC/ARM_CM23/secure/secure_context.h
portable/GCC/ARM_CM23/secure/secure_context_port.c
portable/GCC/ARM_CM23/secure/secure_heap.c
portable/GCC/ARM_CM33/secure/secure_context.c
portable/GCC/ARM_CM33/secure/secure_context.h
portable/GCC/ARM_CM33/secure/secure_context_port.c
portable/GCC/ARM_CM33/secure/secure_heap.c
portable/IAR/ARM_CM23/secure/secure_context.c
portable/IAR/ARM_CM23/secure/secure_context.h
portable/IAR/ARM_CM23/secure/secure_context_port.c [deleted file]
portable/IAR/ARM_CM23/secure/secure_context_port_asm.s
portable/IAR/ARM_CM23/secure/secure_heap.c
portable/IAR/ARM_CM33/secure/secure_context.c
portable/IAR/ARM_CM33/secure/secure_context.h
portable/IAR/ARM_CM33/secure/secure_context_port.c [deleted file]
portable/IAR/ARM_CM33/secure/secure_context_port_asm.s
portable/IAR/ARM_CM33/secure/secure_heap.c