]> git.gag.com Git - fw/openocd/commitdiff
rtos: zephyr: add zephyr_params for cortex r4
authorJulien Massot <julien.massot@iot.bzh>
Tue, 13 Jul 2021 06:41:20 +0000 (08:41 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 31 Jul 2021 09:10:00 +0000 (10:10 +0100)
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 <julien.massot@iot.bzh>
Reviewed-on: http://openocd.zylin.com/6369
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/rtos/zephyr.c

index fc5e0375b9a1c4f51a14fc58e47f9baa7b21d87e..a5967355706e90764ab68ca02129cf2486749d55 100644 (file)
@@ -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,