Skip to content
Commit 77925656 authored by Christoph Winklhofer's avatar Christoph Winklhofer Committed by Benjamin Cabé
Browse files

logging: Fix runtime message creation in user-mode thread



The runtime message creation (CONFIG_LOG_ALWAYS_RUNTIME=y) in a user-
mode thread raises a MPU violation, e.g. call LOG_INF("Test") in a
user-mode thread.

The function 'z_log_msg_runtime_vcreate' runs in user mode but works
with Kernel data. Hence, create the cbprintf package on the stack (of
the user mode thread) and pass it further to the syscall
'z_log_msg_static_create'.

Signed-off-by: default avatarChristoph Winklhofer <cj.winklhofer@gmail.com>
parent 83aafaf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment