mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-08-26 20:25:43 +00:00
GetSystemInfo, GetProcessInfo: Memory sizes should be in bytes
This commit is contained in:
parent
c7dc503bdf
commit
46d8c03947
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ void Kernel::getProcessInfo() {
|
|||
// stack size + page-rounded size of the external handle table
|
||||
case 2:
|
||||
// FIXME
|
||||
regs[1] = fcramManager.getUsedCount(FcramRegion::App);
|
||||
regs[1] = fcramManager.getUsedCount(FcramRegion::App) * Memory::pageSize;
|
||||
regs[2] = 0;
|
||||
break;
|
||||
|
||||
|
@ -363,7 +363,7 @@ void Kernel::getSystemInfo() {
|
|||
switch (subtype) {
|
||||
// Total used memory size in the APPLICATION memory region
|
||||
case 1:
|
||||
regs[1] = fcramManager.getUsedCount(FcramRegion::App);
|
||||
regs[1] = fcramManager.getUsedCount(FcramRegion::App) * Memory::pageSize;
|
||||
regs[2] = 0;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue