Skip to content

Commit

Permalink
kernel/cpp: use abi:: instead of __cxxabiv1:: namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Jun 28, 2024
1 parent 069e087 commit 0931f35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/misc/cpp_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern "C" int __cxa_atexit(void (*destructor)(void *), void *arg, void *dso)

// static scoped variable constructor support

extern "C" int __cxxabiv1::__cxa_guard_acquire(abi::__guard *g)
extern "C" int abi::__cxa_guard_acquire(abi::__guard *g)
{
// TODO: stub functions, implement 64-bit mutexes/futex-word
__atomic_thread_fence(__ATOMIC_ACQUIRE);
Expand All @@ -59,14 +59,14 @@ extern "C" int __cxxabiv1::__cxa_guard_acquire(abi::__guard *g)
}

// this function is called when a constructor finishes
extern "C" void __cxxabiv1::__cxa_guard_release(abi::__guard *g)
extern "C" void abi::__cxa_guard_release(abi::__guard *g)
{
long zero = 0;
__atomic_store(g, &zero, __ATOMIC_RELEASE);
__atomic_thread_fence(__ATOMIC_RELEASE);
}

// this function is called when a constructor throws an exception
extern "C" void __cxxabiv1::__cxa_guard_abort(abi::__guard *)
extern "C" void abi::__cxa_guard_abort(abi::__guard *)
{
}

0 comments on commit 0931f35

Please sign in to comment.