1 /* 2 * Copyright (c) 2021 Antony Pavlov <antonynpavlov@gmail.com> 3 * 4 * based on arch/riscv/include/offsets_short_arch.h 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #ifndef ZEPHYR_ARCH_MIPS_INCLUDE_OFFSETS_SHORT_ARCH_H_ 10 #define ZEPHYR_ARCH_MIPS_INCLUDE_OFFSETS_SHORT_ARCH_H_ 11 12 #include <offsets.h> 13 14 #define _thread_offset_to_sp \ 15 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_sp_OFFSET) 16 17 #define _thread_offset_to_s0 \ 18 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s0_OFFSET) 19 20 #define _thread_offset_to_s1 \ 21 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s1_OFFSET) 22 23 #define _thread_offset_to_s2 \ 24 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s2_OFFSET) 25 26 #define _thread_offset_to_s3 \ 27 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s3_OFFSET) 28 29 #define _thread_offset_to_s4 \ 30 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s4_OFFSET) 31 32 #define _thread_offset_to_s5 \ 33 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s5_OFFSET) 34 35 #define _thread_offset_to_s6 \ 36 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s6_OFFSET) 37 38 #define _thread_offset_to_s7 \ 39 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s7_OFFSET) 40 41 #define _thread_offset_to_s8 \ 42 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_s8_OFFSET) 43 44 #define _thread_offset_to_swap_return_value \ 45 (___thread_t_arch_OFFSET + ___thread_arch_t_swap_return_value_OFFSET) 46 47 #endif /* ZEPHYR_ARCH_MIPS_INCLUDE_OFFSETS_SHORT_ARCH_H_ */ 48