]> begriffs open source - freertos/commit
Add option to disable unprivileged critical sections
authorGaurav Aggarwal <aggarg@amazon.com>
Thu, 7 Oct 2021 02:00:39 +0000 (19:00 -0700)
committerGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Mon, 15 Nov 2021 23:09:12 +0000 (15:09 -0800)
commit44fc1374284e17c737e1b0120dcf3fadfe499a62
tree37a3526a23c2580a58c63b4df517d6b36de3cda1
parent7a3848753b303cffe658abc11110d008669f7021
Add option to disable unprivileged critical sections

This commit introduces a new config
configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS which enables developers to
prevent critical sections from unprivileged tasks. It defaults to 1 for
backward compatibility. Application should set it to 0 to disable
critical sections from unprivileged tasks.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
portable/GCC/ARM_CM3_MPU/port.c
portable/GCC/ARM_CM4_MPU/port.c
portable/IAR/ARM_CM4F_MPU/port.c
portable/RVDS/ARM_CM4_MPU/port.c