I'm looking through the new RTOS/thread code, with a view to adding
eCos/Cortex-M3 support (if time and hardware allow) and I'm a bit
confused by a section in src/rtos/rtos.c.  In
rtos_generic_stack_read():534, address is modified by the size of the
stacked register set (having been set to the value of the stack_ptr).
However, it is never used from that point on.  Since this is a section
of code that appears to be used by FreeRTOS/ThreadX I assume that it
works, or they both have their stack growth direction set incorrectly
and the two errors cancel out.  Can anyone clarify?

I think that line 536 should use address, rather than stack_ptr as the
lookup address, but this would seem to break the existing examples.

Cheers

Alan
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to