From 4748e101adc5932fd7dce27d7aa8536e4216c739 Mon Sep 17 00:00:00 2001 From: Bruno Mendes Date: Mon, 7 Aug 2023 10:23:13 +0100 Subject: [PATCH] rtos/zephyr: arm: fetch arm exc return offset Since https://github.com/zephyrproject-rtos/zephyr/commit/c3eeae8, Zephyr OS exposes offset of mode_exc_return in the arch struct for ARM. Accounting for this allows for consistency and enables logic with further offsets that may be added after this. Signed-off-by: Bruno Mendes --- src/rtos/zephyr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rtos/zephyr.c b/src/rtos/zephyr.c index 4de7aaa0d..776e25880 100644 --- a/src/rtos/zephyr.c +++ b/src/rtos/zephyr.c @@ -57,6 +57,7 @@ enum zephyr_offsets { OFFSET_T_ARCH, OFFSET_T_PREEMPT_FLOAT, OFFSET_T_COOP_FLOAT, + OFFSET_T_ARM_EXC_RETURN, OFFSET_MAX };