arch: add interface to dump privileged stack in coredump
This adds a interface to allow coredump to dump privileged stack which is defined in architecture specific way. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
e1e4f2a2af
commit
f5163d8940
1 changed files with 13 additions and 0 deletions
|
@ -634,6 +634,19 @@ void arch_coredump_info_dump(const struct arch_esf *esf);
|
||||||
*/
|
*/
|
||||||
uint16_t arch_coredump_tgt_code_get(void);
|
uint16_t arch_coredump_tgt_code_get(void);
|
||||||
|
|
||||||
|
#if defined(CONFIG_USERSPACE) || defined(__DOXYGEN__)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Architecture-specific handling of dumping privileged stack
|
||||||
|
*
|
||||||
|
* This dumps the architecture-specific privileged stack during coredump.
|
||||||
|
*
|
||||||
|
* @param thread Pointer to thread object
|
||||||
|
*/
|
||||||
|
void arch_coredump_priv_stack_dump(struct k_thread *thread);
|
||||||
|
|
||||||
|
#endif /* CONFIG_USERSPACE || __DOXYGEN__ */
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue