1 /*
2  * Copyright (c) 2016 Wind River Systems, Inc.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
8 #define ZEPHYR_ARCH_ARC_INCLUDE_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_relinquish_cause \
21 	(___thread_t_arch_OFFSET + ___thread_arch_t_relinquish_cause_OFFSET)
22 
23 #define _thread_offset_to_k_stack_base \
24 	(___thread_t_arch_OFFSET + ___thread_arch_t_k_stack_base_OFFSET)
25 
26 #define _thread_offset_to_k_stack_top \
27 	(___thread_t_arch_OFFSET + ___thread_arch_t_k_stack_top_OFFSET)
28 
29 #define _thread_offset_to_u_stack_base \
30 	(___thread_t_arch_OFFSET + ___thread_arch_t_u_stack_base_OFFSET)
31 
32 #define _thread_offset_to_u_stack_top \
33 	(___thread_t_arch_OFFSET + ___thread_arch_t_u_stack_top_OFFSET)
34 
35 #define _thread_offset_to_priv_stack_start \
36 	(___thread_t_arch_OFFSET + ___thread_arch_t_priv_stack_start_OFFSET)
37 
38 #define _thread_offset_to_sp \
39 	(___thread_t_callee_saved_OFFSET + ___callee_saved_t_sp_OFFSET)
40 
41 /* end - threads */
42 
43 #endif /* ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
44