[U-Boot] [PATCH v3 4/7] FDT: only call boot_get_fdt from generic code
Michal Simek
monstr at monstr.eu
Thu Oct 14 05:07:35 CEST 2010
John Rigby wrote:
> All arches except nios2 and microblaze call boot_get_fdt
> from bootm_start in common/cmd_bootm.c.
>
> Having nios2 and microblaze do so as well removes code from
> their respective do_bootm_linux routines and allows removal of
> a nasty ifdef from bootm_start.
>
> In the case where boot_get_fdt returns an error bootm_start
> returns and the platform specific do_bootm_linux routines
> will never get called.
>
> Also only check argv[3] for an fdt addr if argc > 3 first.
> This is already the case for nios2.
>
> Signed-off-by: John Rigby <john.rigby at linaro.org>
> CC: Scott McNutt <smcnutt at psyent.com>
> CC: Michal Simek <monstr at monstr.eu>
> CC: Thomas Chou <thomas at wytron.com.tw>
> ---
> arch/microblaze/lib/bootm.c | 14 +++++---------
Acked-by: Michal Simek <monstr at monstr.eu>
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
More information about the U-Boot
mailing list