Files
ladybird/Kernel
asynts 71fd54f76b MemoryManager: Off-by-one error when collecting memory pages.
Notice that we ensured that the size is a multiple of the page size and
that there is at least one page there, otherwise, this change would be
invalid.

We create an empty region and then expand it:

    // First iteration.
    m_user_physical_regions.append(PhysicalRegion::create(addr, addr));

    // Following iterations.
    region->expand(region->lower(), addr);

So if the memory region only has one page, we would end up with an empty
region. Thus we need to do one more iteration.
2020-10-12 19:39:00 +02:00
..
2020-10-03 12:36:49 +02:00
2020-10-03 12:36:49 +02:00
2020-10-03 12:36:49 +02:00
2020-09-27 19:46:04 +02:00
2020-10-03 12:36:49 +02:00
2020-10-03 12:36:49 +02:00
2020-09-27 19:46:04 +02:00
2020-08-22 20:55:10 +02:00
2020-08-22 20:55:10 +02:00
2020-05-14 20:15:18 +02:00
2020-09-27 19:46:04 +02:00
2020-08-10 11:51:45 +02:00
2020-10-03 12:36:49 +02:00
2020-09-27 19:46:04 +02:00
2020-08-10 11:51:45 +02:00
2020-10-03 12:36:49 +02:00
2020-09-27 19:46:04 +02:00
2020-08-10 11:51:45 +02:00
2020-08-10 11:51:45 +02:00
2020-09-27 01:02:11 +02:00