From 190906aeaf7ee0a7a35d6e4b83d2b0fd34b14163 Mon Sep 17 00:00:00 2001 From: superroc Date: Mon, 12 Aug 2024 19:36:47 +0800 Subject: [PATCH] Add portMEMORY_BARRIER defination to fix over-optimization in xTaskResumeAll. (#1116) Co-authored-by: owen --- portable/ThirdParty/XCC/Xtensa/portmacro.h | 1 + 1 file changed, 1 insertion(+) diff --git a/portable/ThirdParty/XCC/Xtensa/portmacro.h b/portable/ThirdParty/XCC/Xtensa/portmacro.h index d6a79b9be..dced2382c 100644 --- a/portable/ThirdParty/XCC/Xtensa/portmacro.h +++ b/portable/ThirdParty/XCC/Xtensa/portmacro.h @@ -114,6 +114,7 @@ static inline unsigned portENTER_CRITICAL_NESTED() { unsigned state = XTOS_SET_I #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 4 #define portNOP() XT_NOP() +#define portMEMORY_BARRIER() XT_MEMW() /*-----------------------------------------------------------*/ /* Fine resolution time */