diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 08:46:11 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 08:46:11 +0100 |
| commit | 81d1228cd0654d11efba13adb3ab7301d2b5ca49 (patch) | |
| tree | eb8c688b3091a9d5011d74e6b3c8d1265f3cdccd /libs/kstd/src | |
| parent | 408b499a47c8b4ad04bed8bb789583c721ce6955 (diff) | |
| download | teachos-81d1228cd0654d11efba13adb3ab7301d2b5ca49.tar.xz teachos-81d1228cd0654d11efba13adb3ab7301d2b5ca49.zip | |
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.
Diffstat (limited to 'libs/kstd/src')
| -rw-r--r-- | libs/kstd/src/mutex.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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); |
