1 /*
2  * Copyright (c) 2019 Intel Corporation
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #ifndef ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
7 #define ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
8 
9 #ifdef CONFIG_X86_64
10 #include <intel64/offsets_short_arch.h>
11 #else
12 #include <ia32/offsets_short_arch.h>
13 #endif
14 
15 #define _thread_offset_to_flags \
16 	(___thread_t_arch_OFFSET + ___thread_arch_t_flags_OFFSET)
17 
18 #ifdef CONFIG_USERSPACE
19 #define _thread_offset_to_psp \
20 	(___thread_t_arch_OFFSET + ___thread_arch_t_psp_OFFSET)
21 
22 #define _thread_offset_to_ptables \
23 	(___thread_t_arch_OFFSET + ___thread_arch_t_ptables_OFFSET)
24 #endif /* CONFIG_USERSPACE */
25 
26 #endif /* ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
27