arch/tricore: syscall SYS_switch_context and SYS_restore_context use 0 para

after task switch optimization, we can just use g_running_tasks and this_task() without pass params

Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com>
This commit is contained in:
zhangyu117
2024-12-16 15:50:01 +08:00
committed by Xiang Xiao
parent b8fd06cf0e
commit 8786c814f0
6 changed files with 31 additions and 81 deletions
+2 -3
View File
@@ -220,10 +220,9 @@ static inline_function uintptr_t up_getusrsp(void *regs)
do { \
if (!up_interrupt_context()) \
{ \
nxsched_switch_context(rtcb, tcb); \
sys_call2(SYS_switch_context, (uintptr_t)&rtcb->xcp.regs, \
(uintptr_t)tcb->xcp.regs); \
sys_call0(SYS_switch_context); \
} \
UNUSED(rtcb); \
} while (0)
/****************************************************************************