mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 18:28:25 +00:00
riscv/syscall: Fix sched_note instrumentation for BUILD_KERNEL
The sched_note calls were missing from riscv_perform_syscall().
This commit is contained in:
parent
b851916d76
commit
f36dff8105
1 changed files with 4 additions and 0 deletions
|
|
@ -65,6 +65,10 @@ void *riscv_perform_syscall(uintreg_t *regs)
|
|||
|
||||
addrenv_switch(NULL);
|
||||
#endif
|
||||
/* Update scheduler parameters */
|
||||
|
||||
nxsched_suspend_scheduler(g_running_tasks[this_cpu()]);
|
||||
nxsched_resume_scheduler(tcb);
|
||||
|
||||
/* Record the new "running" task. g_running_tasks[] is only used by
|
||||
* assertion logic for reporting crashes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue