aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorfrangarcj2016-09-06 17:50:57 +0200
committerfrangarcj2016-09-06 17:50:57 +0200
commit9facb65b76d846175f3ef9fbeafd1c590a0e0630 (patch)
treee9714055f8030b973e71cfec59d60d8fb6ac2fd1 /frontend
parent1c2e3fc3baf93e7c17f678d0d187e9f424360bb2 (diff)
downloadpcsx_rearmed-9facb65b76d846175f3ef9fbeafd1c590a0e0630.tar.gz
pcsx_rearmed-9facb65b76d846175f3ef9fbeafd1c590a0e0630.tar.bz2
pcsx_rearmed-9facb65b76d846175f3ef9fbeafd1c590a0e0630.zip
(VITA) I think that is not VM Memory and do some alignment
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 75f9b98..444719a 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -290,7 +290,7 @@ void* pl_vita_mmap(unsigned long addr, size_t size, int is_fixed,
char blockname[32];
sprintf(blockname, "CODE 0x%08X",tag);
- block = sceKernelAllocMemBlockForVM(blockname, size);
+ block = sceKernelAllocMemBlock(blockname, size + 0x1000);
if(block<=0){
sceClibPrintf("could not alloc mem block @0x%08X 0x%08X \n", block, tag);
exit(1);
@@ -303,7 +303,7 @@ void* pl_vita_mmap(unsigned long addr, size_t size, int is_fixed,
sceClibPrintf("could get address @0x%08X 0x%08X 0x%08X \n", block, ret, tag);
exit(1);
}
-
+ custom_map->buffer = (((u32)custom_map->buffer) + 0xFFF) & ~0xFFF;
custom_map->target_map = block;
return custom_map->buffer;