[fdt] Identify free space (if any) at end of parsed tree

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-04-01 13:04:10 +01:00
parent 0a48bb3214
commit d853448887
2 changed files with 31 additions and 4 deletions

View File

@@ -84,6 +84,8 @@ struct fdt {
};
/** Length of tree */
size_t len;
/** Used length of tree */
size_t used;
/** Offset to structure block */
unsigned int structure;
/** Length of structure block */
@@ -92,6 +94,8 @@ struct fdt {
unsigned int strings;
/** Length of strings block */
size_t strings_len;
/** Offset to memory reservation block */
unsigned int reservations;
};
extern struct image_tag fdt_image __image_tag;