From 332a1607d9e9b1cca3a855c524dfe44bb51e1306 Mon Sep 17 00:00:00 2001 From: Julien Massot Date: Tue, 13 Jul 2021 08:41:20 +0200 Subject: [PATCH 1/1] rtos: zephyr: add zephyr_params for cortex r4 Implementation for Cortex-M does works for Cortex-R too, it allows me to fetch thread list and their backtrace on a Cortex-R platforms. Change-Id: I23e6eb00879587ba36e0bfb560f7002a9653d39b Signed-off-by: Julien Massot Reviewed-on: http://openocd.zylin.com/6369 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/rtos/zephyr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rtos/zephyr.c b/src/rtos/zephyr.c index fc5e0375b9..a596735570 100644 --- a/src/rtos/zephyr.c +++ b/src/rtos/zephyr.c @@ -340,6 +340,14 @@ static struct zephyr_params zephyr_params_list[] = { .cpu_saved_fp_stacking = &arm_cpu_saved_fp_stacking, .get_cpu_state = &zephyr_get_arm_state, }, + { + .target_name = "cortex_r4", + .pointer_width = 4, + .callee_saved_stacking = &arm_callee_saved_stacking, + .cpu_saved_nofp_stacking = &arm_cpu_saved_nofp_stacking, + .cpu_saved_fp_stacking = &arm_cpu_saved_fp_stacking, + .get_cpu_state = &zephyr_get_arm_state, + }, { .target_name = "hla_target", .pointer_width = 4, -- 2.30.2