Ver código fonte

freertos: upgrade to 10.4.3 - try to add portDONT_DISCARD

Zim Kalinowski 4 anos atrás
pai
commit
d37ed3e05b

+ 1 - 1
components/freertos/include/freertos/task.h

@@ -3346,7 +3346,7 @@ BaseType_t xTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem,
  * Sets the pointer to the current TCB to the TCB of the highest priority task
  * that is ready to run.
  */
-void vTaskSwitchContext( void ) PRIVILEGED_FUNCTION;
+portDONT_DISCARD void vTaskSwitchContext( void ) PRIVILEGED_FUNCTION;
 
 /*
  * THESE FUNCTIONS MUST NOT BE USED FROM APPLICATION CODE.  THEY ARE USED BY

+ 1 - 0
tools/mocks/freertos/mock/mock_config.yaml

@@ -18,3 +18,4 @@
               # following function is disabled by configTHREAD_LOCAL_STORAGE_DELETE_CALLBACKS
             - '(?:vTaskSetThreadLocalStoragePointerAndDelCallback\s*\([\s\w\*_,]*\))'
             - PRIVILEGED_FUNCTION
+            - portDONT_DISCARD