mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-15 09:36:35 +00:00
thermosphere: fix off by 1 in wp mgr
This commit is contained in:
parent
7ecb3a4aaf
commit
0126a6417f
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ namespace ams::hvisor {
|
||||||
} else {
|
} else {
|
||||||
size_t off = addr & 7ull;
|
size_t off = addr & 7ull;
|
||||||
wp.vr = addr & ~7ul;
|
wp.vr = addr & ~7ul;
|
||||||
wp.cr.bas = MASK2(off + size, off);
|
wp.cr.bas = MASK2(off + size - 1, off);
|
||||||
}
|
}
|
||||||
|
|
||||||
return AddImpl(addr, size, wp);
|
return AddImpl(addr, size, wp);
|
||||||
|
|
Loading…
Reference in a new issue