rt-thread
rt-thread copied to clipboard
[Cortex-M0] stack pointer is wrong if hardfault happens in ISR
如果在中断里发生了hardfault,PSP记录的并不是中断栈的位置,会导致打印的hardfault信息错误 https://github.com/RT-Thread/rt-thread/blob/90fb832bf2cd518a8ac408f52fcc941ae0ac3c0b/libcpu/arm/cortex-m0/context_rvds.S#L207