Skip to content

Commit

Permalink
Add portMEMORY_BARRIER defination to fix over-optimization in xTaskRe…
Browse files Browse the repository at this point in the history
…sumeAll. (#1116)

Co-authored-by: owen <owen@freqchip.com>
  • Loading branch information
superroc and freqchip authored Aug 12, 2024
1 parent da3c35a commit 190906a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions portable/ThirdParty/XCC/Xtensa/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 190906a

Please sign in to comment.