mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 17:47:18 +00:00
Kernel: Use size_t to keep track of the number of pages in a region
We were previously using a 32-bit unsigned integer for this, which caused us to start truncating region sizes when multiplied with `PAGE_SIZE` on hardware with a lot of memory.
This commit is contained in:
committed by
Linus Groh
parent
4aa70a07ca
commit
1ca0898b1c
@@ -63,7 +63,7 @@ void PhysicalRegion::initialize_zones()
|
||||
make_zones(small_zone_size);
|
||||
}
|
||||
|
||||
OwnPtr<PhysicalRegion> PhysicalRegion::try_take_pages_from_beginning(unsigned page_count)
|
||||
OwnPtr<PhysicalRegion> PhysicalRegion::try_take_pages_from_beginning(size_t page_count)
|
||||
{
|
||||
VERIFY(page_count > 0);
|
||||
VERIFY(page_count < m_pages);
|
||||
|
||||
Reference in New Issue
Block a user