1 /* 2 * Copyright (c) 2016 Wind River Systems, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_ARCH_X86_INCLUDE_IA32_OFFSETS_SHORT_ARCH_H_ 8 #define ZEPHYR_ARCH_X86_INCLUDE_IA32_OFFSETS_SHORT_ARCH_H_ 9 10 #include <offsets.h> 11 12 /* kernel */ 13 14 #define _kernel_offset_to_isf \ 15 (___kernel_t_arch_OFFSET + ___kernel_arch_t_isf_OFFSET) 16 17 /* end - kernel */ 18 19 /* threads */ 20 21 #define _thread_offset_to_excNestCount \ 22 (___thread_t_arch_OFFSET + ___thread_arch_t_excNestCount_OFFSET) 23 24 #define _thread_offset_to_esp \ 25 (___thread_t_callee_saved_OFFSET + ___callee_saved_t_esp_OFFSET) 26 27 #define _thread_offset_to_preempFloatReg \ 28 (___thread_t_arch_OFFSET + ___thread_arch_t_preempFloatReg_OFFSET) 29 30 /* end - threads */ 31 32 #endif /* ZEPHYR_ARCH_X86_INCLUDE_IA32_OFFSETS_SHORT_ARCH_H_ */ 33