kernel: publish offsets to thread stack info
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
50a533f7a5
commit
41c68ece83
2 changed files with 9 additions and 0 deletions
|
@ -209,6 +209,8 @@ struct _thread_stack_info {
|
|||
/* Stack Size */
|
||||
u32_t size;
|
||||
};
|
||||
|
||||
typedef struct _thread_stack_info _thread_stack_info_t;
|
||||
#endif /* CONFIG_THREAD_STACK_INFO */
|
||||
|
||||
struct k_thread {
|
||||
|
|
|
@ -50,6 +50,13 @@ GEN_OFFSET_SYM(_thread_t, caller_saved);
|
|||
GEN_OFFSET_SYM(_thread_t, callee_saved);
|
||||
GEN_OFFSET_SYM(_thread_t, arch);
|
||||
|
||||
#ifdef CONFIG_THREAD_STACK_INFO
|
||||
GEN_OFFSET_SYM(_thread_stack_info_t, start);
|
||||
GEN_OFFSET_SYM(_thread_stack_info_t, size);
|
||||
|
||||
GEN_OFFSET_SYM(_thread_t, stack_info);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_THREAD_MONITOR)
|
||||
GEN_OFFSET_SYM(_thread_t, next_thread);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue