Skip to content
Snippets Groups Projects
Commit 0f65e36e authored by Jonathan Dumaresq's avatar Jonathan Dumaresq Committed by Freddie Chopin
Browse files

RTOS support: Correction of out of bound access of thread array


FreeRTOS use an array to store ready task. The array size is
configMAX_PRIORITIES. In the current implementation, the code try to access 1 more priority if the helper from freeRTOS contrib is used.
This has effect of detecting bad thread. This patch correct this and have been tested on
a code with more than 12 task.

Change-Id: Id229f0b2c4bf1aab87a2a69be174cc9b6dda00cb
Signed-off-by: default avatarJonathan Dumaresq <jdumaresq@cimeq.qc.ca>
Reviewed-on: http://openocd.zylin.com/3400


Tested-by: jenkins
Reviewed-by: default avatarTomas Vanek <vanekt@fbl.cz>
parent f5b70337
No related branches found
No related tags found
No related merge requests found
......@@ -17,4 +17,4 @@
#define USED
#endif
const int USED uxTopUsedPriority = configMAX_PRIORITIES;
const int USED uxTopUsedPriority = configMAX_PRIORITIES - 1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment