mirror of
https://github.com/apache/nuttx.git
synced 2026-06-10 20:28:06 +08:00
3e459c0477
This commit fixes the regression from https://github.com/apache/nuttx/pull/13561 In order to determine whether a context switch has occurred, we can use g_running_task to store the current regs. This allows us to compare the current register state with the previously stored state to identify if a context switch has taken place. Signed-off-by: hujun5 <hujun5@xiaomi.com>