From 81d1228cd0654d11efba13adb3ab7301d2b5ca49 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 16 Mar 2026 08:46:11 +0100 Subject: x86_64: remove stl_* sections for now We currently don't really support user mode anymore, since it doesn't integrate well within the architecture. We therefore need no special handling of STL and kstd anymore. --- libs/kstd/src/mutex.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libs/kstd/src') diff --git a/libs/kstd/src/mutex.cpp b/libs/kstd/src/mutex.cpp index cabf833..d66cb98 100644 --- a/libs/kstd/src/mutex.cpp +++ b/libs/kstd/src/mutex.cpp @@ -7,10 +7,8 @@ namespace kstd { - [[gnu::section(".stl_text")]] mutex::mutex() = default; - [[gnu::section(".stl_text")]] mutex::~mutex() { if (m_locked.test(std::memory_order_relaxed)) @@ -19,7 +17,6 @@ namespace kstd } } - [[gnu::section(".stl_text")]] auto mutex::lock() -> void { while (!try_lock()) @@ -28,13 +25,11 @@ namespace kstd } } - [[gnu::section(".stl_text")]] auto mutex::try_lock() -> bool { return !m_locked.test_and_set(std::memory_order_acquire); } - [[gnu::section(".stl_text")]] auto mutex::unlock() -> void { m_locked.clear(std::memory_order_release); -- cgit v1.2.3