Skip to content

Commit 7f282f7

Browse files
nashifdanieldegrasse
authored andcommitted
xtensa: tracing: instrument thread switching
Add missing call to thread_switched_in for the purpose of tracing. Fixes #76057 Signed-off-by: Anas Nashif <[email protected]>
1 parent 808ee17 commit 7f282f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/xtensa/include/xtensa_asm2_s.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,10 @@ _excint_noflush_\@:
606606
/* Restore A1 stack pointer from "next" handle. */
607607
mov a1, a6
608608

609+
#ifdef CONFIG_INSTRUMENT_THREAD_SWITCHING
610+
call4 z_thread_mark_switched_in
611+
#endif
612+
609613
_restore_\@:
610614
j _restore_context
611615
.endm

0 commit comments

Comments
 (0)