]> git.sur5r.net Git - openocd/commit
rtos: Fix XPSR_OFFSET for cortex_m4f stacking
authorArmin van der Togt <armin@otheruse.nl>
Thu, 2 Mar 2017 09:39:26 +0000 (10:39 +0100)
committerMatthias Welwarsky <matthias@welwarsky.de>
Sat, 7 Apr 2018 19:33:39 +0000 (20:33 +0100)
commit4f2c3e6c4f82fbbf9c5d7e8a234c949d11ef5ae7
tree6ef37476a56212980c221ba41daf6929e1adb5cd
parentdb456e209feaecae53094051f3710fef73418a71
rtos: Fix XPSR_OFFSET for cortex_m4f stacking

Structures rtos_standard_Cortex_M4F_stacking and
rtos_standard_Cortex_M4F_FPU_stacking in rtos_standard_stackings.c
where using rtos_standard_Cortex_M3_stack_align for the stack-align
function. This function calls rtos_Cortex_M_stack_align with
XPSR_OFFSET = 0x3c. This offset is correct for cortex-M3 but not for
cortex-M4F and cortex-M4F with fpu. This patch adds stack_align
functions for M4F an M4F_FPU

Change-Id: If6a90b1898fccbb85619a10f3aef5277dd88ce47
Signed-off-by: Armin van der Togt <armin@otheruse.nl>
Reviewed-on: http://openocd.zylin.com/4037
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/rtos/rtos_standard_stackings.c