test(libkernel): construct batch commit entry for memory pool test

This commit is contained in:
abhinav29102005 2026-10-12 11:33:19 +05:30
parent e106b3ba9b
commit ed3ca36b54
1 changed files with 6 additions and 0 deletions

View File

@ -451,6 +451,12 @@ static void CheckMtypeprotect() {
Require(sceKernelMemoryPoolCommit(bytes + page * 2, page, 6, 3, 0) == 0);
check(2, 6, 3);
check(1, 3, 1);
KernelMemoryPoolBatchEntry commitEntry{};
commitEntry.op = 1;
commitEntry.commit.addr = bytes + page * 2;
commitEntry.commit.len = page;
commitEntry.commit.prot = 1;
commitEntry.commit.type = 7;
Require(sceKernelMtypeprotect(bytes, page * 3, 2, 3) == 0);
VirtualQueryInfo whole{};
Require(sceKernelVirtualQuery(bytes, 0, &whole, sizeof(whole)) == 0);