summaryrefslogtreecommitdiffstats
path: root/lib_ppc
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-01-08 18:11:44 +0100
committerWolfgang Denk <wd@denx.de>2008-02-07 01:12:56 +0100
commit958fc48abddeab513ea4847e34f22a2e9fe67fe1 (patch)
treedcb36632da19f6ac497be1eac6142b9985fe3633 /lib_ppc
parent15158971f49255ccef54f0979a942cfd3de2ae52 (diff)
downloadblackbird-obmc-uboot-958fc48abddeab513ea4847e34f22a2e9fe67fe1.tar.gz
blackbird-obmc-uboot-958fc48abddeab513ea4847e34f22a2e9fe67fe1.zip
[new uImage] Fix FDT header verification in PPC do_boot_linux() routine
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/ppc_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_ppc/ppc_linux.c b/lib_ppc/ppc_linux.c
index 4e7734ccd3..671673fcb8 100644
--- a/lib_ppc/ppc_linux.c
+++ b/lib_ppc/ppc_linux.c
@@ -265,9 +265,9 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
of_flat_tree = (char *) simple_strtoul(argv[3], NULL, 16);
hdr = (image_header_t *)of_flat_tree;
#if defined(CONFIG_OF_FLAT_TREE)
- if (*((ulong *)(of_flat_tree + image_get_header_size ())) != OF_DT_HEADER) {
+ if (*((ulong *)(of_flat_tree)) == OF_DT_HEADER) {
#elif defined(CONFIG_OF_LIBFDT)
- if (fdt_check_header (of_flat_tree + image_get_header_size ()) != 0) {
+ if (fdt_check_header (of_flat_tree) == 0) {
#endif
#ifndef CFG_NO_FLASH
if (addr2info((ulong)of_flat_tree) != NULL)
OpenPOWER on IntegriCloud