diff options
author | Marian Balakowicz <m8@semihalf.com> | 2008-02-29 22:22:46 +0100 |
---|---|---|
committer | Marian Balakowicz <m8@semihalf.com> | 2008-02-29 22:22:46 +0100 |
commit | 05e07b1ea22844e946cfcf7d5e8a0199d18d2a95 (patch) | |
tree | e82cb6aaf3fe10ba115a7d6b32e67aaf30abd4eb /lib_ppc | |
parent | d1cc52879c8966507dad9fb575481e6d3985e64e (diff) | |
download | bootable_bootloader_goldelico_gta04-05e07b1ea22844e946cfcf7d5e8a0199d18d2a95.zip bootable_bootloader_goldelico_gta04-05e07b1ea22844e946cfcf7d5e8a0199d18d2a95.tar.gz bootable_bootloader_goldelico_gta04-05e07b1ea22844e946cfcf7d5e8a0199d18d2a95.tar.bz2 |
[new uImage] Fix FDT blob totalsize calculation in boot_relocate_fdt()
Do not use global fdt blob pointer, calculate blob size from routine
argument blob pointer.
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r-- | lib_ppc/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c index 8974ccd..7977157 100644 --- a/lib_ppc/bootm.c +++ b/lib_ppc/bootm.c @@ -557,7 +557,7 @@ static int boot_relocate_fdt (struct lmb *lmb, ulong bootmap_base, if (fdt_blob >= (char *)CFG_BOOTMAPSZ) relocate = 1; - of_len = be32_to_cpu (fdt_totalsize (fdt)); + of_len = be32_to_cpu (fdt_totalsize (fdt_blob)); /* move flattend device tree if needed */ if (relocate) { |