rosalina: fix wrong args in svcControlMemoryEx

This commit is contained in:
fangrong 2024-08-24 14:39:01 +08:00 committed by TuxSH
parent ab7e8676b5
commit 9f933954a0
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ Result Draw_AllocateFramebufferCache(u32 size)
if (framebufferCache != NULL) if (framebufferCache != NULL)
__builtin_trap(); __builtin_trap();
Result res = svcControlMemoryEx(&tmp, addr, 0, size, MEMOP_ALLOC, MEMREGION_SYSTEM | MEMPERM_READWRITE, true); Result res = svcControlMemoryEx(&tmp, addr, 0, size, MEMOP_ALLOC | MEMOP_REGION_SYSTEM, MEMPERM_READWRITE, true);
if (R_FAILED(res)) if (R_FAILED(res))
{ {
framebufferCache = NULL; framebufferCache = NULL;

View File

@ -110,7 +110,7 @@ Result miniSocInit(void)
ret = srvGetServiceHandle(&miniSocHandle, "soc:U"); ret = srvGetServiceHandle(&miniSocHandle, "soc:U");
if(ret != 0) goto cleanup; if(ret != 0) goto cleanup;
ret = svcControlMemoryEx(&tmp, socContextAddr, 0, socContextSize, MEMOP_ALLOC, MEMREGION_SYSTEM | MEMPERM_READ | MEMPERM_WRITE, true); ret = svcControlMemoryEx(&tmp, socContextAddr, 0, socContextSize, MEMOP_ALLOC | MEMOP_REGION_SYSTEM, MEMPERM_READ | MEMPERM_WRITE, true);
if(ret != 0) goto cleanup; if(ret != 0) goto cleanup;
socContextAddr = tmp; socContextAddr = tmp;