Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions subsys/debug/thread_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ const size_t _kernel_thread_info_offsets[] = {
#elif defined(CONFIG_XTENSA)
/* Xtensa does not store stack pointers inside thread objects.
* The registers are saved in thread stack where there is
* no fixed location for this to work. So mark this as
* unimplemented to avoid the #warning below.
* no fixed location for this to work. It needs arch_switch in
* order to work on Xtensa.
*/
#ifdef CONFIG_USE_SWITCH
[THREAD_INFO_OFFSET_T_STACK_PTR] = offsetof(struct k_thread, switch_handle),
#else
[THREAD_INFO_OFFSET_T_STACK_PTR] = THREAD_INFO_UNIMPLEMENTED,
#endif
#elif defined(CONFIG_RX)
/* RX doesn't store *anything* inside thread objects yet */
[THREAD_INFO_OFFSET_T_STACK_PTR] = THREAD_INFO_UNIMPLEMENTED,
Expand Down
Loading