diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-09-29 19:03:10 +1000 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-11-06 13:28:33 +1100 |
commit | 7b61ea3e5c8bf1b9790a94339031f0f2b2726cbb (patch) | |
tree | 75c3f3945dfac3c39bca1d16eb588b11ffe349a5 /board-qemu | |
parent | 14a876d38d9c352293a9d47850f8a4bb92eac594 (diff) | |
download | SLOF-7b61ea3e5c8bf1b9790a94339031f0f2b2726cbb.zip SLOF-7b61ea3e5c8bf1b9790a94339031f0f2b2726cbb.tar.gz SLOF-7b61ea3e5c8bf1b9790a94339031f0f2b2726cbb.tar.bz2 |
fdt: Fix version and add a word for FDT header size
This fixes the version handling in fdt-init. It only matters
a little for the fdt-debug==1 case though.
This defines /fdth word for the FDT header size; this will be used
in the next patch.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'board-qemu')
-rw-r--r-- | board-qemu/slof/fdt.fs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board-qemu/slof/fdt.fs b/board-qemu/slof/fdt.fs index 851645e..8e8921f 100644 --- a/board-qemu/slof/fdt.fs +++ b/board-qemu/slof/fdt.fs @@ -27,7 +27,7 @@ struct 4 field >fdth_boot_cpu 4 field >fdth_string_size 4 field >fdth_struct_size -drop +constant /fdth h# d00dfeed constant OF_DT_HEADER h# 1 constant OF_DT_BEGIN_NODE @@ -69,7 +69,7 @@ fdt-start fdt-init dup >fdth_version l@ 3 >= IF ." strings size : 0x" dup >fdth_string_size l@ . cr THEN - dup >fdth_version l@ 17 >= IF + dup >fdth_version l@ 11 >= IF ." struct size : 0x" dup >fdth_struct_size l@ . cr THEN THEN |