Skip to content

Commit

Permalink
tracing: riscv: Add missing invoke of sys_trace_isr_exit()
Browse files Browse the repository at this point in the history
Change suggested by @WealianLiao in zephyrproject-rtos#41995.

Signed-off-by: Robert Szczepanski <[email protected]>
  • Loading branch information
robertszczepanski authored and nashif committed May 11, 2022
1 parent 87191eb commit 8647e2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/riscv/core/isr.S
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ GTEXT(z_riscv_thread_start)

#ifdef CONFIG_TRACING
GTEXT(sys_trace_isr_enter)
GTEXT(sys_trace_isr_exit)
#endif

#ifdef CONFIG_USERSPACE
Expand Down Expand Up @@ -492,6 +493,10 @@ on_irq_stack:
/* Call ISR function */
jalr ra, t1, 0

#ifdef CONFIG_TRACING_ISR
call sys_trace_isr_exit
#endif

irq_done:
/* Decrement _current_cpu->nested */
lw t2, ___cpu_t_nested_OFFSET(s0)
Expand Down

0 comments on commit 8647e2f

Please sign in to comment.