Support for specifying memreserve ranges in the source format, based on
a patch by Jon Loeliger <jdl AT freescale.com>, although tweaked
substantially.
diff --git a/data.c b/data.c
index 3c7de18..9801037 100644
--- a/data.c
+++ b/data.c
@@ -229,6 +229,13 @@
return data_append_data(d, &beword, sizeof(beword));
}
+struct data data_append_addr(struct data d, u64 addr)
+{
+ u64 beaddr = cpu_to_be64(addr);
+
+ return data_append_data(d, &beaddr, sizeof(beaddr));
+}
+
struct data data_append_byte(struct data d, uint8_t byte)
{
return data_append_data(d, &byte, 1);