kern: finish SvcGetSystemInfo

This commit is contained in:
Michael Scire
2020-07-21 01:59:48 -07:00
committed by SciresM
parent 43ad4eb794
commit 058f223b97
3 changed files with 58 additions and 0 deletions

View File

@@ -145,6 +145,8 @@ namespace ams::kern {
return Initialize(heap_address, heap_size, metadata_address, metadata_size, MemoryBlockPageShifts, NumMemoryBlockPageShifts);
}
size_t GetFreeSize() const { return this->GetNumFreePages() * PageSize; }
void UpdateUsedSize() {
this->used_size = this->heap_size - (this->GetNumFreePages() * PageSize);
}