loader: bios loader should check the smap while loading the modules
|Status:||In Progress||Start date:||2017-09-22|
|Assignee:||Toomas Soome||% Done:|
The current loading is built assuming contiguous address map above 1MB line, and the only rule on module placement is that new module should start from page aligned address. However, apparently there already are BIOS systems, where we can encounter holes, and therefore we also need to consult with memory smap list to avoid the holes.
This bug was discovered and the fix verified with AMD Ryzen system, with BIOS firmware. Note, the similar check must also be implemented for UEFI loader and kernel dboot and locore (fakebop) module, but to keep the changes simple, we will address those components in separate.
Also available in: Atom