kern: codegen tweaks, now that we're no longer -Os

This commit is contained in:
Michael Scire
2022-03-22 23:58:39 -07:00
parent 059a005647
commit ae09c45f6b
10 changed files with 77 additions and 70 deletions

View File

@@ -56,8 +56,8 @@ namespace ams::kern {
}
}
bool LockSlowPath(uintptr_t owner, uintptr_t cur_thread);
void UnlockSlowPath(uintptr_t cur_thread);
NOINLINE bool LockSlowPath(uintptr_t owner, uintptr_t cur_thread);
NOINLINE void UnlockSlowPath(uintptr_t cur_thread);
ALWAYS_INLINE bool IsLocked() const { return m_tag.Load() != 0; }
ALWAYS_INLINE bool IsLockedByCurrentThread() const { return (m_tag.Load() | 0x1ul) == (reinterpret_cast<uintptr_t>(GetCurrentThreadPointer()) | 0x1ul); }