ktf icon indicating copy to clipboard operation
ktf copied to clipboard

pmm: simpler and bugfix process_memory_range loop

Open sktt opened this issue 5 months ago • 0 comments

This simplifies the adding of frames during boot. It also fixes a bug for configurations with > 1GB memory. After the initial 4K frames, the current (cur) is aligned to 2MB. Trying to add a 1GB frame at this point will lead to page faults further down the line as we end up with misaligned page frame mfns.

I am pretty unsure about what I did to the index <= first_avail_region (completely dropped it). Let me know if this should be included still somehow.

sktt avatar Jan 16 '24 19:01 sktt