GetSystemInfo, GetProcessInfo: Memory sizes should be in bytes

This commit is contained in:
wheremyfoodat 2025-08-03 12:45:16 +03:00
commit 46d8c03947

View file

@ -270,7 +270,7 @@ void Kernel::getProcessInfo() {
// stack size + page-rounded size of the external handle table // stack size + page-rounded size of the external handle table
case 2: case 2:
// FIXME // FIXME
regs[1] = fcramManager.getUsedCount(FcramRegion::App); regs[1] = fcramManager.getUsedCount(FcramRegion::App) * Memory::pageSize;
regs[2] = 0; regs[2] = 0;
break; break;
@ -363,7 +363,7 @@ void Kernel::getSystemInfo() {
switch (subtype) { switch (subtype) {
// Total used memory size in the APPLICATION memory region // Total used memory size in the APPLICATION memory region
case 1: case 1:
regs[1] = fcramManager.getUsedCount(FcramRegion::App); regs[1] = fcramManager.getUsedCount(FcramRegion::App) * Memory::pageSize;
regs[2] = 0; regs[2] = 0;
break; break;