From e4b9930bf332ff2af8239475f14d6256aa9a831c Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 25 Dec 2022 01:56:23 -0700 Subject: [PATCH] kern: fix unnecessarily strong load in aligned spinlock Copy-paste error I didn't notice for two years, whoops --- .../include/mesosphere/arch/arm64/kern_k_spin_lock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/include/mesosphere/arch/arm64/kern_k_spin_lock.hpp b/libraries/libmesosphere/include/mesosphere/arch/arm64/kern_k_spin_lock.hpp index 80a5bc891..c5a977501 100644 --- a/libraries/libmesosphere/include/mesosphere/arch/arm64/kern_k_spin_lock.hpp +++ b/libraries/libmesosphere/include/mesosphere/arch/arm64/kern_k_spin_lock.hpp @@ -77,7 +77,7 @@ namespace ams::kern::arch::arm64 { __asm__ __volatile__( " prfm pstl1keep, %[m_next_ticket]\n" "1:\n" - " ldaxrh %w[tmp0], %[m_next_ticket]\n" + " ldxrh %w[tmp0], %[m_next_ticket]\n" " add %w[tmp1], %w[tmp0], #0x1\n" " stxrh %w[got_lock], %w[tmp1], %[m_next_ticket]\n" " cbnz %w[got_lock], 1b\n"