162 _backing.free(pmem); 163 _used -= pmem.size(); 164 } 165 166 void ZPhysicalMemoryManager::map(ZPhysicalMemory pmem, uintptr_t offset) { 167 // Map page 168 _backing.map(pmem, offset); 169 170 // Update native memory tracker 171 nmt_commit(pmem, offset); 172 } 173 174 void ZPhysicalMemoryManager::unmap(ZPhysicalMemory pmem, uintptr_t offset) { 175 // Update native memory tracker 176 nmt_uncommit(pmem, offset); 177 178 // Unmap page 179 _backing.unmap(pmem, offset); 180 } 181 182 void ZPhysicalMemoryManager::flip(ZPhysicalMemory pmem, uintptr_t offset) { 183 _backing.flip(pmem, offset); 184 } | 162 _backing.free(pmem); 163 _used -= pmem.size(); 164 } 165 166 void ZPhysicalMemoryManager::map(ZPhysicalMemory pmem, uintptr_t offset) { 167 // Map page 168 _backing.map(pmem, offset); 169 170 // Update native memory tracker 171 nmt_commit(pmem, offset); 172 } 173 174 void ZPhysicalMemoryManager::unmap(ZPhysicalMemory pmem, uintptr_t offset) { 175 // Update native memory tracker 176 nmt_uncommit(pmem, offset); 177 178 // Unmap page 179 _backing.unmap(pmem, offset); 180 } 181 182 void ZPhysicalMemoryManager::debug_map(ZPhysicalMemory pmem, uintptr_t offset) { 183 _backing.debug_map(pmem, offset); 184 } 185 186 void ZPhysicalMemoryManager::debug_unmap(ZPhysicalMemory pmem, uintptr_t offset) { 187 _backing.debug_unmap(pmem, offset); 188 } |