diff options
Diffstat (limited to 'include/panic.h')
-rw-r--r-- | include/panic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/panic.h b/include/panic.h index e3323e7cc7..ce357eafad 100644 --- a/include/panic.h +++ b/include/panic.h @@ -190,6 +190,12 @@ struct panic_data *test_get_panic_data_pointer(void); struct panic_data *get_panic_data_write(void); /** + * Return a pointer to the stack of the process that caused the panic. + * The implementation of this function will depend on the architecture. + */ +uint32_t get_panic_stack_pointer(const struct panic_data *pdata); + +/** * Chip-specific implementation for backing up panic data to persistent * storage. This function is used to ensure that the panic data can survive loss * of VCC power rail. |