Add support for 16kb page size on Android

This commit is contained in:
Henrik Rydgård committed 2025-06-10 16:16:13 +02:00
1 parent 20491e0077
commit 2feaeef837
6 files changed
+35 -10

No files matched your search

+6 -1
View File
@@ -352,7 +352,12 @@ int GetMemoryProtectPageSize() {
if (sys_info.dwPageSize == 0)
GetSystemInfo(&sys_info);
return sys_info.dwPageSize;
#else
static int pageSize = 0;
if (!pageSize) {
pageSize = sysconf(_SC_PAGE_SIZE);
}
return pageSize;
#endif
return MEM_PAGE_SIZE;
}
#endif // !PPSSPP_PLATFORM(SWITCH)