]> begriffs open source - freertos/commit
Pre-allocate secure-side context structures
authorGaurav Aggarwal <aggarg@amazon.com>
Wed, 4 Aug 2021 21:52:22 +0000 (14:52 -0700)
committerGaurav Aggarwal <aggarg@amazon.com>
Tue, 10 Aug 2021 07:08:29 +0000 (00:08 -0700)
commit4209835692bb9d7e5ca37f13a90652c26a059784
treea49490e323c027d621c7a34d8447c9c27d1d5174
parentb97bb48e063d0e8bd6791e4c7e241a6220c2a258
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