[kernel] Add new vm_area_fixed

Add a new vm_area type, vm_area_fixed, which is sharable but not
allocatable. Useful for mapping things like MMIO to process spaces.
This commit is contained in:
Justin C. Miller
2021-01-28 01:05:21 -08:00
parent 71dc332dae
commit e3ebaeb2c8
2 changed files with 31 additions and 0 deletions

View File

@@ -53,6 +53,17 @@ vm_area_shared::~vm_area_shared()
}
vm_area_fixed::vm_area_fixed(size_t size, vm_flags flags) :
m_mapper {*this},
vm_area {size, flags}
{
}
vm_area_fixed::~vm_area_fixed()
{
}
vm_area_open::vm_area_open(size_t size, vm_space &space, vm_flags flags) :
m_mapper(*this, space),
vm_area(size, flags)