Skip to contentSkip to conversation

Clarification: dtb size fields are in bytes

PATCH New Grant Likely 1 participant 1 message Dec 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Clarification: dtb size fields are in bytes

Clarify that the dtb header totalsize field, and the reserved region size field specify the size in bytes.

Resolves #9

---
 source/flattened-format.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
source/flattened-format.rst +4 -4
index a82e502..a1c358e 100644
@@ -90,8 +90,8 @@ big-endian format.
     This field shall contain the value 0xd00dfeed (big-endian).
 
 ``totalsize``
-    This field shall contain the total size of the devicetree data
-    structure. This size shall encompass all sections of the structure:
+    This field shall contain the total size in bytes of the devicetree data structure.
+    This size shall encompass all sections of the structure:
     the header, the memory reservation block, structure block and
     strings block, as well as any free space gaps between the blocks or
     after the final block.
@@ -216,8 +216,8 @@ structure.
         uint64_t size;
     };
 
-Each pair gives the physical address and size of a reserved memory
-region. These given regions shall not overlap each other. The list of
+Each pair gives the physical address and size in bytes of a reserved memory region.
+These given regions shall not overlap each other. The list of
 reserved blocks shall be terminated with an entry where both address and
 size are equal to 0. Note that the address and size values are always
 64-bit. On 32-bit CPUs the upper 32-bits of the value are ignored.
Signature · 1 line
2.11.0