Skip to content

Commit

Permalink
Fix potential regression with home menu plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
xzn committed Jan 16, 2024
1 parent aad2d10 commit b2e45f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/plg.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@ u32 plgEnsurePoolEnd(u32 end) {
return 0;
}
nsDbgPrint("expand pool addr: %08x, size: %08x\n", addr, size);
// ret = controlMemoryInSysRegion(&outAddr, addr, addr, size, NS_DEFAULT_MEM_REGION + 3, 3);
ret = controlMemoryInSysRegion(&outAddr, addr, addr, size, NS_DEFAULT_MEM_REGION + 3, 3);
// u32 mem_region;
// ret = getMemRegion(&mem_region, CURRENT_PROCESS_HANDLE);
// if (ret != 0) {
// showDbg("getMemRegion failed: %08x", ret, 0);
// return ret;
// }
ret = svc_controlMemory(&outAddr, addr, addr, size, /* mem_region + */3, 3);
// ret = svc_controlMemory(&outAddr, addr, addr, size, /* mem_region + */3, 3);
if (ret != 0) {
if (rtCheckRemoteMemoryRegionSafeForWrite(0xffff8001, addr, size) != 0) {
nsDbgPrint("alloc plg memory failed: %08x\n", ret);
Expand Down

0 comments on commit b2e45f6

Please sign in to comment.