mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[fdtmem] Ignore reservation regions with no fixed addresses
Do not print an error message for unused reservation regions that have no fixed reserved address ranges. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -119,6 +119,10 @@ static int fdtmem_update_node ( struct memmap_region *region, struct fdt *fdt,
|
|||||||
/* Count regions */
|
/* Count regions */
|
||||||
count = fdt_reg_count ( fdt, desc.offset, ®s );
|
count = fdt_reg_count ( fdt, desc.offset, ®s );
|
||||||
if ( count < 0 ) {
|
if ( count < 0 ) {
|
||||||
|
if ( flags & MEMMAP_FL_RESERVED ) {
|
||||||
|
/* Assume this is a non-fixed reservation */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
rc = count;
|
rc = count;
|
||||||
DBGC ( region, "FDTMEM has malformed region %s: %s\n",
|
DBGC ( region, "FDTMEM has malformed region %s: %s\n",
|
||||||
desc.name, strerror ( rc ) );
|
desc.name, strerror ( rc ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user