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:
Daniel Leung 2024-09-16 09:40:00 -07:00 committed by Henrik Brix Andersen
commit f5163d8940

View file

@ -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__ */
/** @} */ /** @} */
/** /**