The paging code currently does not unmap the memory area before the
kernel image, but then tries to re-map any region in that area.
Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #760
rc = ukplat_page_map(&kernel_pt, vaddr, paddr,
len >> PAGE_SHIFT, prot, 0);
- if (unlikely(rc))
+ /* Unmappings are currently not performed on the low-mem.
+ * Ignore any errors caused by already existing mappings.
+ */
+ if (unlikely(rc && rc != -EEXIST))
return rc;
}