mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 22:15:17 -04:00
kern: fix bug in KPageTableBase::SetupForIpcServer
This commit is contained in:
parent
75e6999668
commit
0bd14b7114
2 changed files with 6 additions and 7 deletions
|
@ -152,7 +152,6 @@ namespace ams::kern::arch::arm64::cpu {
|
|||
ALWAYS_INLINE bool CanAccessAtomic(KProcessAddress addr, bool privileged = false) {
|
||||
const uintptr_t va = GetInteger(addr);
|
||||
|
||||
u64 phys_addr;
|
||||
if (privileged) {
|
||||
__asm__ __volatile__("at s1e1w, %[va]" :: [va]"r"(va) : "memory");
|
||||
} else {
|
||||
|
@ -166,7 +165,7 @@ namespace ams::kern::arch::arm64::cpu {
|
|||
return false;
|
||||
}
|
||||
|
||||
return (par >> BITSIZEOF(par) - BITSIZEOF(u8)) == 0xFF;
|
||||
return (par >> (BITSIZEOF(par) - BITSIZEOF(u8))) == 0xFF;
|
||||
}
|
||||
|
||||
/* Synchronization helpers. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue