ams: save 0x11000 of memory in spl via minor tweaks
This commit is contained in:
1 parent
b8072b1398
commit
d2f81d2ca2
2 files changed
+8
-3
No files matched your search
@@ -197,10 +197,15 @@ extern "C" {
|
||||
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
constinit ams::os::Mutex g_abort_lock(true);
|
||||
|
||||
}
|
||||
|
||||
/* Custom abort handler, so that std::abort will trigger these. */
|
||||
void abort() {
|
||||
static ams::os::Mutex abort_lock(true);
|
||||
std::scoped_lock lk(abort_lock);
|
||||
std::scoped_lock lk(g_abort_lock);
|
||||
|
||||
ams::AbortImpl();
|
||||
__builtin_unreachable();
|
||||
|
||||
Reference in new issue
Block a user