genode/repos/base-hw/lib/mk/base-hw-common.mk
Stefan Kalkowski 8fe7fa5532 hw: don't take the log backend's mutex in kernel
To prevent the kernel to deadlock, or call itself with a syscall when
using a lock potentially hold by a core thread, the log console's
backend for core (hw) gets replaced by a specific variant that checks
whether it runs in the kernel context before using the mutex.

Fix genodelabs/genode#3280
2023-01-24 12:07:29 +01:00

18 lines
505 B
Makefile

#
# \brief Portions of base library shared by core and non-core components
# \author Norman Feske
# \author Martin Stein
# \date 2013-02-14
#
include $(BASE_DIR)/lib/mk/base-common.inc
SRC_CC += rpc_dispatch_loop.cc
SRC_CC += thread.cc thread_myself.cc thread_bootstrap.cc
SRC_CC += signal_transmitter.cc
# filter out log.cc from the generic base library
# in core and hw kernel we have to implement it differently
SRC_CC_WITH_LOG_CC := $(SRC_CC)
SRC_CC = $(filter-out log.cc,$(SRC_CC_WITH_LOG_CC))