[Zion] Add a AddressSpaceUnmap syscall to free memory.
This commit is contained in:
parent
e668428d9d
commit
30b6511467
9 changed files with 60 additions and 18 deletions
|
|
@ -76,6 +76,11 @@ class AddressSpace : public KernelObject {
|
|||
[[nodiscard]] glcr::ErrorOr<uint64_t> MapInMemoryObject(
|
||||
const glcr::RefPtr<MemoryObject>& mem_obj);
|
||||
|
||||
[[nodiscard]] glcr::ErrorCode FreeAddressRange(uint64_t vaddr_base,
|
||||
uint64_t vaddr_limit) {
|
||||
return mapping_tree_.FreeMemoryRange(vaddr_base, vaddr_limit);
|
||||
}
|
||||
|
||||
// Kernel Mappings.
|
||||
uint64_t AllocateKernelStack();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue