diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-01-14 13:52:24 +0100 |
---|---|---|
committer | Gerald Van Baren <vanbaren@cideas.com> | 2009-01-17 13:03:29 -0500 |
commit | c088a108c75db565e07292fd668dfa5491e85bc2 (patch) | |
tree | 0f310a28b1da8173a05e57c6cc30618716d5b0a9 /include/dp83848.h | |
parent | fadad1573fb16c90025f08a2861d6047d093cba7 (diff) | |
download | u-boot-imx-c088a108c75db565e07292fd668dfa5491e85bc2.zip u-boot-imx-c088a108c75db565e07292fd668dfa5491e85bc2.tar.gz u-boot-imx-c088a108c75db565e07292fd668dfa5491e85bc2.tar.bz2 |
fdt_resize(): fix actualsize calculations with unaligned blobs
The code in fdt_resize() to extend the fdt size to end on a page boundary
is wrong for fdt's not located at an address aligned on a page boundary.
What's even worse, the code would make actualsize shrink rather than grow
if (blob & 0xfff) was bigger than the amount of padding added by ALIGN(),
causing fdt_add_mem_rsv to fail.
Fix it by aligning end address (blob + size) to a page boundary instead.
For aligned fdt's this is equivalent to what we had before.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'include/dp83848.h')
0 files changed, 0 insertions, 0 deletions