]> 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 <aggarg@amazon.com>
Thu, 7 Oct 2021 02:00:39 +0000 (19:00 -0700)
commit6ffbd5e31866c1728b3f091f1a86ec88477b1d37
tree760e6373b55656aaa3f1e306f6e3ef0ea0ada2a2
parent526be5210d1d2bda52a50de281180ee7d96dcc84
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