1 /* 2 * Copyright (c) 2016 Wind River Systems, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_OFFSETS_SHORT_ARCH_H_ 8 #define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_OFFSETS_SHORT_ARCH_H_ 9 10 #include <offsets.h> 11 12 /* kernel */ 13 14 /* nothing for now */ 15 16 /* end - kernel */ 17 18 /* threads */ 19 20 #define _thread_offset_to_basepri \ 21 (___thread_t_arch_OFFSET + ___thread_arch_t_basepri_OFFSET) 22 23 #define _thread_offset_to_swap_return_value \ 24 (___thread_t_arch_OFFSET + ___thread_arch_t_swap_return_value_OFFSET) 25 26 #define _thread_offset_to_preempt_float \ 27 (___thread_t_arch_OFFSET + ___thread_arch_t_preempt_float_OFFSET) 28 29 #if defined(CONFIG_USERSPACE) || defined(CONFIG_FPU_SHARING) 30 #define _thread_offset_to_mode \ 31 (___thread_t_arch_OFFSET + ___thread_arch_t_mode_OFFSET) 32 #endif 33 34 #if defined(CONFIG_ARM_STORE_EXC_RETURN) 35 #define _thread_offset_to_mode_exc_return \ 36 (___thread_t_arch_OFFSET + ___thread_arch_t_mode_exc_return_OFFSET) 37 #endif 38 39 #ifdef CONFIG_USERSPACE 40 #define _thread_offset_to_priv_stack_start \ 41 (___thread_t_arch_OFFSET + ___thread_arch_t_priv_stack_start_OFFSET) 42 43 #if defined(CONFIG_CPU_CORTEX_R) 44 #define _thread_offset_to_priv_stack_end \ 45 (___thread_t_arch_OFFSET + ___thread_arch_t_priv_stack_end_OFFSET) 46 47 #define _thread_offset_to_sp_usr \ 48 (___thread_t_arch_OFFSET + ___thread_arch_t_sp_usr_OFFSET) 49 #endif 50 #endif 51 52 #if defined(CONFIG_THREAD_STACK_INFO) 53 #define _thread_offset_to_stack_info_start \ 54 (___thread_stack_info_t_start_OFFSET + ___thread_t_stack_info_OFFSET) 55 #endif 56 57 58 /* end - threads */ 59 60 #endif /* ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_OFFSETS_SHORT_ARCH_H_ */ 61