mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
[libcpu ][cm3]The parameter passed to the unified rt_exception_hook is exception_stack. (#10619)
This commit is contained in:
@@ -294,13 +294,14 @@ void rt_hw_hard_fault_exception(struct exception_info * exception_info)
|
||||
#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS)
|
||||
extern long list_thread(void);
|
||||
#endif
|
||||
struct stack_frame* context = &exception_info->stack_frame;
|
||||
struct exception_stack_frame *exception_stack = &exception_info->stack_frame.exception_stack_frame;
|
||||
struct stack_frame *context = &exception_info->stack_frame;
|
||||
|
||||
if (rt_exception_hook != RT_NULL)
|
||||
{
|
||||
rt_err_t result;
|
||||
|
||||
result = rt_exception_hook(exception_info);
|
||||
result = rt_exception_hook(exception_stack);
|
||||
if (result == RT_EOK)
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user