mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
vm: fix mapping of file's last page
thanks @red_prig for investigation
This commit is contained in:
parent
ea2915467a
commit
e6022c1c4c
6 changed files with 136 additions and 69 deletions
|
|
@ -14,10 +14,6 @@ orbis::SysResult orbis::sys_sstk(Thread *, sint) {
|
|||
orbis::SysResult orbis::sys_mmap(Thread *thread, caddr_t addr, size_t len,
|
||||
sint prot, sint flags, sint fd, off_t pos) {
|
||||
if (auto impl = thread->tproc->ops->mmap) {
|
||||
// hack for audio control shared memory
|
||||
if (len == 3880) {
|
||||
return impl(thread, addr, 0x10000, prot, flags, fd, pos);
|
||||
}
|
||||
return impl(thread, addr, len, prot, flags, fd, pos);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue