mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-30 01:45:22 +00:00
Add a printk default hook that works in very early boot and doesn't depend on the logging subsystem (which can still be used if desired, of course). It speaks the same protocol, is somewhat smaller (MUCH smaller if the app doesn't otherwise need the logging and ring buffer dependencies), and more efficiently uses the output slot space by doing line buffering and flushing only when needed. Most importantly this one is MP-safe via both locking and cache coherence management, and can work reliably when SMP is enabled. (Note that "reliable" means that all output appears without corruption -- simulateous logging by two CPUs can still interleave bytes, of course). Longer term, if we keep this protocol it would be good to unify the two backends to reduce duplicated code. Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
common | ||
nios2 | ||
posix | ||
riscv | ||
shields | ||
x86 | ||
xtensa | ||
CMakeLists.txt | ||
deprecated.cmake | ||
index.rst | ||
Kconfig |