projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1cc528
)
[new uImage] Fix FDT blob totalsize calculation in boot_relocate_fdt()
author
Marian Balakowicz
<m8@semihalf.com>
Fri, 29 Feb 2008 21:22:46 +0000
(22:22 +0100)
committer
Marian Balakowicz
<m8@semihalf.com>
Fri, 29 Feb 2008 21:22:46 +0000
(22:22 +0100)
Do not use global fdt blob pointer, calculate blob size from routine
argument blob pointer.
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
lib_ppc/bootm.c
patch
|
blob
|
history
diff --git
a/lib_ppc/bootm.c
b/lib_ppc/bootm.c
index
8974ccd
..
7977157
100644
(file)
--- 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) {