ac:u: stub CloseAsync; check memory size aling in svc:GetProcessInfo(type=2)
This commit is contained in:
parent
24bd57b6bf
commit
bd8cc69893
2 changed files with 29 additions and 1 deletions
|
@ -860,6 +860,10 @@ static ResultCode GetProcessInfo(s64* out, Handle process_handle, u32 type) {
|
|||
// TODO(yuriks): Type 0 returns a slightly higher number than type 2, but I'm not sure
|
||||
// what's the difference between them.
|
||||
*out = process->heap_used + process->linear_heap_used + process->misc_memory_used;
|
||||
if(*out % Memory::PAGE_SIZE != 0) {
|
||||
LOG_ERROR(Kernel_SVC, "called, memory size not page-aligned");
|
||||
return ERR_MISALIGNED_SIZE;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue