This is an automated email from Gerrit. Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2347
-- gerrit commit 0cbb0e96cfb098df5c338d6761f1f15c4df3c359 Author: Paul Fertser <[email protected]> Date: Sat Oct 18 15:34:12 2014 +0400 rtos: add instructions and helper code to make FreeRTOS work again Run-time tested with FreeRTOS V8.1.2 (current version). For the time being I propose this way of dealing with RTOSes that do not export necessary information on their own. I also suggest implementing a similar scheme for ChibiOS, exporting the necessary struct fields' offsets via an OpenOCD-specific helper. Change-Id: Iacf8b88004d62206215fe80011fd7592438446a3 Signed-off-by: Paul Fertser <[email protected]> diff --git a/contrib/rtos-helpers/FreeRTOS-openocd.c b/contrib/rtos-helpers/FreeRTOS-openocd.c new file mode 100644 index 0000000..bcd3bba --- /dev/null +++ b/contrib/rtos-helpers/FreeRTOS-openocd.c @@ -0,0 +1,14 @@ +/* + * Since at least FreeRTOS V7.5.3 uxTopUsedPriority is no longer + * present in the kernel, so it has to be supplied by other means for + * OpenOCD's threads awareness. + * + * Add this file to your project, and, if you're using --gc-sections, + * ``--undefined=uxTopUsedPriority'' (or + * ``-Wl,--undefined=uxTopUsedPriority'' when using gcc for final + * linking) to your LDFLAGS. + */ + +#include "FreeRTOSConfig.h" + +const int __attribute__((used)) uxTopUsedPriority = configMAX_PRIORITIES; diff --git a/doc/openocd.texi b/doc/openocd.texi index 88d8928..49e1848 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -8446,6 +8446,14 @@ For most RTOS supported the above symbols will be exported by default. However f some, eg. FreeRTOS @option{xTasksWaitingTermination} is only exported if @option{INCLUDE_vTaskDelete} is defined during the build. +These RTOSes require additional OpenOCD-specific file to be linked +along with the project: + +@table @code +@item FreeRTOS +contrib/rtos-helpers/FreeRTOS-openocd.c +@end table + @node Tcl Scripting API @chapter Tcl Scripting API @cindex Tcl Scripting API -- ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
