Skip to content
Commit 175e76b3 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Christopher Friedt
Browse files

z_thread_mark_switched_*: use z_current_get() instead of k_current_get()



k_current_get() may rely on TLS which might not yet be initialized
when those tracing functions are called, resulting in a crash.

This is different from the main branch as in that case the implementation
was completely revamped and neither k_current_get() nor z_current_get()
are used anymore. This is a much simpler fix than a backport of that
code, similar to the implication in commit commit f07df42d ("kernel:
make k_current_get() work without syscall").

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent c520749a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment