This is an automated email from Gerrit.

Evan Hunter ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2399

-- gerrit

commit cfcf553985ee2a73e93545920b213e72c028d626
Author: Evan Hunter <[email protected]>
Date:   Fri Nov 21 17:55:15 2014 +0000

    RTOS: Fix FreeRTOS awareness to work with latest FreeRTOS release
    
    Latest version of FreeRTOS has removed the uxTopUsedPriority, and
    instead has uxTopReadyPriority
    
    Change-Id: Idfe5fe402cfb6845fd61ecfd16433309a67a517f
    Signed-off-by: Evan Hunter <[email protected]>

diff --git a/src/rtos/FreeRTOS.c b/src/rtos/FreeRTOS.c
index 6f3e159..4c929a8 100644
--- a/src/rtos/FreeRTOS.c
+++ b/src/rtos/FreeRTOS.c
@@ -116,7 +116,7 @@ enum FreeRTOS_symbol_values {
        FreeRTOS_VAL_xTasksWaitingTermination = 7,
        FreeRTOS_VAL_xSuspendedTaskList = 8,
        FreeRTOS_VAL_uxCurrentNumberOfTasks = 9,
-       FreeRTOS_VAL_uxTopUsedPriority = 10,
+       FreeRTOS_VAL_uxTopReadyPriority = 10,
 };
 
 static const char * const FreeRTOS_symbol_list[] = {
@@ -130,7 +130,7 @@ static const char * const FreeRTOS_symbol_list[] = {
        "xTasksWaitingTermination",
        "xSuspendedTaskList",
        "uxCurrentNumberOfTasks",
-       "uxTopUsedPriority",
+       "uxTopReadyPriority",
        NULL
 };
 
@@ -228,12 +228,13 @@ static int FreeRTOS_update_threads(struct rtos *rtos)
        /* Find out how many lists are needed to be read from 
pxReadyTasksLists, */
        int64_t max_used_priority = 0;
        retval = target_read_buffer(rtos->target,
-                       rtos->symbols[FreeRTOS_VAL_uxTopUsedPriority].address,
+                       rtos->symbols[FreeRTOS_VAL_uxTopReadyPriority].address,
                        param->pointer_width,
                        (uint8_t *)&max_used_priority);
        if (retval != ERROR_OK)
                return retval;
-       LOG_DEBUG("FreeRTOS: Read uxTopUsedPriority at 0x%" PRIx64 ", value %" 
PRId64 "\r\n",
+       LOG_DEBUG("FreeRTOS: Read uxTopReadyPriority at 0x%" PRIx64 ", value %" 
PRId64 "\r\n",
+                                                                               
rtos->symbols[FreeRTOS_VAL_uxTopReadyPriority].address,
                                                                                
rtos->symbols[FreeRTOS_VAL_uxTopUsedPriority].address,
                                                                                
max_used_priority);
        if (max_used_priority > FREERTOS_MAX_PRIORITIES) {

-- 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to