Bug #8681

loader: bios loader should check the smap while loading the modules

Added by Toomas Soome about 1 month ago.

Status:In ProgressStart date:2017-09-22
Priority:NormalDue date:
Assignee:Toomas Soome% Done:

90%

Category:bootloader
Target version:-
Difficulty:Medium Tags:

Description

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.


Related issues

Related to illumos gate - Bug #8680: Time of Day clock error New 2017-09-22
Related to illumos gate - Bug #8679: failed to attach AMD IOMMU New 2017-09-22

History

#1 Updated by Gary Mills 30 days ago

  • Related to Bug #8680: Time of Day clock error added

#2 Updated by Gary Mills 30 days ago

  • Related to Bug #8679: failed to attach AMD IOMMU added

Also available in: Atom