]> 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-AWS <33462878+aggarg@users.noreply.github.com>
Fri, 10 Sep 2021 23:44:36 +0000 (16:44 -0700)
commitccaa0f4d6e50f75333f46eaf590e12f05b2dcb4a
tree28370a399bce1b7a72c2364aaa13201dfd187d10
parentf8ada39d856049496408d59f0a2f762c8cd38925
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