mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
Kernel: Fix returning pages to regions >= 2GB
This commit is contained in:
parent
9c5e3cd818
commit
224fbb7910
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ void PhysicalRegion::return_page_at(PhysicalAddress addr)
|
|||
|
||||
int local_offset = addr.get() - m_lower.get();
|
||||
ASSERT(local_offset >= 0);
|
||||
ASSERT(local_offset < (int)(m_pages * PAGE_SIZE));
|
||||
ASSERT((u32)local_offset < (u32)(m_pages * PAGE_SIZE));
|
||||
|
||||
auto page = (unsigned)local_offset / PAGE_SIZE;
|
||||
if (page < m_last)
|
||||
|
|
Loading…
Add table
Reference in a new issue