Since there is a chance that the previous boot phase did not mark
this area as reserved through a memory region descriptor, make sure
we do it ourselved.
Since this memory region is very low, we do this insertion when this
list is empty to avoid unnecessary iterations.
Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #848
*/
do_uk_reloc_kmrds(0, 0);
+ /* Ensure that the memory map contains the legacy high mem area */
+ ukplat_memregion_list_insert_legacy_hi_mem(&bi->mrds);
+
/* Add the cmdline */
if (mi->flags & MULTIBOOT_INFO_CMDLINE) {
if (mi->cmdline) {