mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
git subrepo clone --force --branch=develop https://github.com/m4xw/emummc
subrepo: subdir: "emummc" merged: "24bdbec8" upstream: origin: "https://github.com/m4xw/emummc" branch: "develop" commit: "24bdbec8" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
This commit is contained in:
parent
f72b21d665
commit
1525c66de7
4 changed files with 9 additions and 8 deletions
|
@ -38,6 +38,7 @@ static inline uintptr_t _GetIoMapping(u64 io_addr, u64 io_size)
|
|||
u64 vaddr;
|
||||
u64 aligned_addr = (io_addr & ~0xFFFul);
|
||||
u64 aligned_size = io_size + (io_addr - aligned_addr);
|
||||
|
||||
if (emuMMC_ctx.fs_ver >= FS_VER_10_0_0) {
|
||||
u64 out_size;
|
||||
if (svcQueryIoMapping(&vaddr, &out_size, aligned_addr, aligned_size) != 0) {
|
||||
|
@ -48,6 +49,7 @@ static inline uintptr_t _GetIoMapping(u64 io_addr, u64 io_size)
|
|||
fatal_abort(Fatal_IoMappingLegacy);
|
||||
}
|
||||
}
|
||||
|
||||
return (uintptr_t)(vaddr + (io_addr - aligned_addr));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue