Skip to content
Snippets Groups Projects
Commit 10aaf716 authored by Andy Fleming's avatar Andy Fleming Committed by Wolfgang Denk
Browse files

Fix of_data copying for CONFIG_OF_FLAT_TREE-using boards


The fix, "Fix where the #ifdef CFG_BOOTMAPSZ is placed"
neglected to *also* put the code inside the similar #ifdef
for CONFIG_OF_FLAT_TREE.

Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 78f9fef7
No related branches found
No related tags found
No related merge requests found
...@@ -987,6 +987,15 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag, ...@@ -987,6 +987,15 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
#endif #endif
#endif /* CONFIG_OF_LIBFDT */ #endif /* CONFIG_OF_LIBFDT */
#if defined(CONFIG_OF_FLAT_TREE) #if defined(CONFIG_OF_FLAT_TREE)
#ifdef CFG_BOOTMAPSZ
/*
* The blob must be within CFG_BOOTMAPSZ,
* so we flag it to be copied if it is not.
*/
if (of_flat_tree >= (char *)CFG_BOOTMAPSZ)
of_data = of_flat_tree;
#endif
/* move of_flat_tree if needed */ /* move of_flat_tree if needed */
if (of_data) { if (of_data) {
ulong of_start, of_len; ulong of_start, of_len;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment