From 03f18e1dfe2d89942fdbe5a1f35b9ac738ef3bdc Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 6 Jan 2025 14:03:47 +0100 Subject: [PATCH] fixup "core: don't rely on Core_env in platform.cc" (okl4) --- repos/base-okl4/src/core/include/platform_thread.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repos/base-okl4/src/core/include/platform_thread.h b/repos/base-okl4/src/core/include/platform_thread.h index 5cc96d7253..e515e24ab8 100644 --- a/repos/base-okl4/src/core/include/platform_thread.h +++ b/repos/base-okl4/src/core/include/platform_thread.h @@ -63,7 +63,13 @@ class Core::Platform_thread */ Platform_thread(Platform_pd &pd, Rpc_entrypoint &, Ram_allocator &, Region_map &, size_t, const char *name, - unsigned priority, Affinity::Location, addr_t utcb); + unsigned prio, Affinity::Location, addr_t) + : + _pd(pd), _priority(prio) + { + copy_cstring(_name, name, sizeof(_name)); + _bound_to_pd = pd.bind_thread(*this); + } /** * Constructor used for core-internal threads