kern: finish SvcGetSystemInfo
This commit is contained in:
1 parent
43ad4eb794
commit
058f223b97
3 files changed
+58
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user