kernel: Remove unused derived offset symbols
Some of the offset symbols that are derived from the macro GEN_OFFSET_SYM() are not used anywhere in the Zephyr codebase. Remove them as part of a cleanup effort. Instances of an associated GEN_OFFSET_SYM() have also been removed when the resulting macro is no longer referenced. Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
This commit is contained in:
parent
fa23eb49b3
commit
a06f9ac418
|
@ -57,10 +57,6 @@ GEN_OFFSET_SYM(_kernel_t, current_fp);
|
|||
GEN_ABSOLUTE_SYM(_STRUCT_KERNEL_SIZE, sizeof(struct z_kernel));
|
||||
|
||||
GEN_OFFSET_SYM(_thread_base_t, user_options);
|
||||
GEN_OFFSET_SYM(_thread_base_t, thread_state);
|
||||
GEN_OFFSET_SYM(_thread_base_t, prio);
|
||||
GEN_OFFSET_SYM(_thread_base_t, sched_locked);
|
||||
GEN_OFFSET_SYM(_thread_base_t, preempt);
|
||||
|
||||
GEN_OFFSET_SYM(_thread_t, base);
|
||||
GEN_OFFSET_SYM(_thread_t, callee_saved);
|
||||
|
@ -71,8 +67,6 @@ GEN_OFFSET_SYM(_thread_t, switch_handle);
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_THREAD_STACK_INFO
|
||||
GEN_OFFSET_SYM(_thread_stack_info_t, start);
|
||||
|
||||
GEN_OFFSET_SYM(_thread_t, stack_info);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -56,26 +56,9 @@
|
|||
|
||||
/* base */
|
||||
|
||||
#define _thread_offset_to_thread_state \
|
||||
(___thread_t_base_OFFSET + ___thread_base_t_thread_state_OFFSET)
|
||||
|
||||
#define _thread_offset_to_user_options \
|
||||
(___thread_t_base_OFFSET + ___thread_base_t_user_options_OFFSET)
|
||||
|
||||
#define _thread_offset_to_prio \
|
||||
(___thread_t_base_OFFSET + ___thread_base_t_prio_OFFSET)
|
||||
|
||||
#define _thread_offset_to_sched_locked \
|
||||
(___thread_t_base_OFFSET + ___thread_base_t_sched_locked_OFFSET)
|
||||
|
||||
#define _thread_offset_to_preempt \
|
||||
(___thread_t_base_OFFSET + ___thread_base_t_preempt_OFFSET)
|
||||
|
||||
#define _thread_offset_to_esf \
|
||||
(___thread_t_arch_OFFSET + ___thread_arch_t_esf_OFFSET)
|
||||
|
||||
#define _thread_offset_to_stack_start \
|
||||
(___thread_t_stack_info_OFFSET + ___thread_stack_info_t_start_OFFSET)
|
||||
/* end - threads */
|
||||
|
||||
#endif /* ZEPHYR_KERNEL_INCLUDE_OFFSETS_SHORT_H_ */
|
||||
|
|
Loading…
Reference in a new issue