mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 01:15:08 -04:00
kern: finish SvcGetSystemInfo
This commit is contained in:
parent
43ad4eb794
commit
058f223b97
3 changed files with 58 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue