diff options
| author | R b b666 <[email protected]> | 2025-08-19 21:15:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-19 21:15:47 +0800 |
| commit | 2f19ba6ce76f0f72c23da8dd11c2abe6581b1ab0 (patch) | |
| tree | fff111e6f152726fb7d1ca748b531c792bed586b /libcpu/arm | |
| parent | f4e4188197b3033174af0b229399126969a80928 (diff) | |
[libcpu ][cm3]The parameter passed to the unified rt_exception_hook is exception_stack. (#10619)
Diffstat (limited to 'libcpu/arm')
| -rw-r--r-- | libcpu/arm/cortex-m3/cpuport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcpu/arm/cortex-m3/cpuport.c b/libcpu/arm/cortex-m3/cpuport.c index 8f5616a3dd..3409b6264a 100644 --- a/libcpu/arm/cortex-m3/cpuport.c +++ b/libcpu/arm/cortex-m3/cpuport.c @@ -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; } |
