mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00: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
Add a link
Reference in a new issue