1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/arch
hujun5 3e459c0477 riscv: use g_running_task store current regs
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>
2024-09-27 18:07:31 +08:00
..
arm arm/armv8-r: fix armv8 build error without neon 2024-09-27 11:23:05 +08:00
arm64 arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
avr compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
ceva arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
dummy
hc Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
mips compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
misoc compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
or1k compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
renesas Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
risc-v riscv: use g_running_task store current regs 2024-09-27 18:07:31 +08:00
sim compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
sparc compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
tricore compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
x86 arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
x86_64 arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
xtensa xtesa: fix lost save & restore states caused by merge code 2024-09-27 16:18:36 +08:00
z16 arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
z80 compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
CMakeLists.txt build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
Kconfig arch/x86_64:Add FP backtrace function 2024-09-23 23:15:01 +08:00