mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
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:
@@ -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)
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user