Kernel: Fix MemoryRegion test for contains_fully
This commit is contained in:
parent
827eec6af0
commit
a134d16070
|
@ -35,7 +35,7 @@ namespace Kernel
|
||||||
|
|
||||||
bool MemoryRegion::contains_fully(vaddr_t address, size_t size) const
|
bool MemoryRegion::contains_fully(vaddr_t address, size_t size) const
|
||||||
{
|
{
|
||||||
return m_vaddr <= address && address + size < m_vaddr + m_size;
|
return m_vaddr <= address && address + size <= m_vaddr + m_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MemoryRegion::overlaps(vaddr_t address, size_t size) const
|
bool MemoryRegion::overlaps(vaddr_t address, size_t size) const
|
||||||
|
|
Loading…
Reference in New Issue