aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/rtos_standard_stackings.h
diff options
context:
space:
mode:
authorJonathan Dumaresq <jdumaresq@cimeq.qc.ca>2016-04-06 16:00:06 -0400
committerFreddie Chopin <freddie.chopin@gmail.com>2016-05-04 22:36:23 +0100
commitf5b7033742e0858610d37808f15b25602ba62995 (patch)
tree3454a4a41fe3dfa7a826af918f8a7fb653992b44 /src/rtos/rtos_standard_stackings.h
parent5396ec5dcc64354c8101f8d3f16d498ca3b10326 (diff)
downloadriscv-openocd-f5b7033742e0858610d37808f15b25602ba62995.zip
riscv-openocd-f5b7033742e0858610d37808f15b25602ba62995.tar.gz
riscv-openocd-f5b7033742e0858610d37808f15b25602ba62995.tar.bz2
RTOS support: Add FPU support for FreeRTOS
Add new structure for for working with FPU thread in thread view. This modification support both stacking. When FPU is activated, LR must be validated to check if the FPU register are push on the stack. This is mandatory to find the correct stack pointer position. the modified code was inspired and adapted from https://github.com/TauLabs/TauLabs/commit/88d2003bb83a6b72c796274c889e307f96645966 Change-Id: I6641926aa14e7216cacb399cbc8bb0db324cc9fc Signed-off-by: Jonathan Dumaresq <jdumaresq@cimeq.qc.ca> Reviewed-on: http://openocd.zylin.com/3397 Tested-by: jenkins Reviewed-by: Sergey A. Borshch <sb-sf@users.sourceforge.net> Reviewed-by: Harry Zhurov <harry.zhurov@gmail.com> Reviewed-by: Anton Gusev Reviewed-by: Михаил Цивинский <mtsivinsky@gmail.com> Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/rtos/rtos_standard_stackings.h')
-rw-r--r--src/rtos/rtos_standard_stackings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rtos/rtos_standard_stackings.h b/src/rtos/rtos_standard_stackings.h
index f931bb9..6768c4b 100644
--- a/src/rtos/rtos_standard_stackings.h
+++ b/src/rtos/rtos_standard_stackings.h
@@ -28,6 +28,8 @@
#include "rtos.h"
extern const struct rtos_register_stacking rtos_standard_Cortex_M3_stacking;
+extern const struct rtos_register_stacking rtos_standard_Cortex_M4F_stacking;
+extern const struct rtos_register_stacking rtos_standard_Cortex_M4F_FPU_stacking;
extern const struct rtos_register_stacking rtos_standard_Cortex_R4_stacking;
extern const struct rtos_register_stacking rtos_standard_NDS32_N1068_stacking;
int64_t rtos_generic_stack_align8(struct target *target,