From 2feb8bd8a9a54cee14a19684140b79daedb72a3b Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Mon, 24 Feb 2025 15:57:35 +0000 Subject: [PATCH] Address review feedback Signed-off-by: Gaurav Aggarwal --- include/stack_macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/stack_macros.h b/include/stack_macros.h index ec76a93e8..6d0117722 100644 --- a/include/stack_macros.h +++ b/include/stack_macros.h @@ -60,7 +60,9 @@ * 2. System calls are executed on a separate privileged only stack. * * It is still okay because an MPU region is used to protect task stack which - * means task stack overflow will trigger an MPU fault. + * means task stack overflow will trigger an MPU fault for unprivileged tasks. + * Additionally, architectures with hardware stack overflow checking support + * (such as Armv8-M) will trigger a fault when a task's stack overflows. */ #if ( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH < 0 ) && ( portUSING_MPU_WRAPPERS != 1 ) )