Skip to content

Commit

Permalink
riscv/syscall: Fix sched_note instrumentation for BUILD_KERNEL
Browse files Browse the repository at this point in the history
The sched_note calls were missing from riscv_perform_syscall().
  • Loading branch information
pussuw authored and xiaoxiang781216 committed Oct 30, 2024
1 parent b851916 commit f36dff8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/risc-v/src/common/supervisor/riscv_perform_syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f36dff8

Please sign in to comment.