mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
fix compile error
CC: mqueue.c common/riscv_exit.c: In function 'up_exit':
common/riscv_exit.c:65:33: error: 'tcb' undeclared (first use in this function); did you mean 'tcb_s'?
65 | g_running_tasks[this_cpu()] = tcb;
| ^~~
| tcb_s
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -62,7 +62,7 @@ void up_exit(int status)
|
||||
|
||||
/* Scheduler parameters will update inside syscall */
|
||||
|
||||
g_running_tasks[this_cpu()] = tcb;
|
||||
g_running_tasks[this_cpu()] = this_task();
|
||||
|
||||
/* Then switch contexts */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user