X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Fsparc%2Flib%2Fboard.c;h=32d025a34237c89c443314035f58c3f6264105f3;hb=6c7c946cadfafdea80eb930e3181085b907a0362;hp=ff0e0f2fd04cce0b57a2f409c2cd76f91f4a9a63;hpb=1c27059a2f7158a9c9a8778535b030935d75179d;p=platform%2Fkernel%2Fu-boot.git diff --git a/arch/sparc/lib/board.c b/arch/sparc/lib/board.c index ff0e0f2..32d025a 100644 --- a/arch/sparc/lib/board.c +++ b/arch/sparc/lib/board.c @@ -246,8 +246,8 @@ void board_init_f(ulong bootflag) /* * We have to relocate the command table manually */ - fixup_cmdtable(&__u_boot_cmd_start, - (ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start)); + fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd), + ll_entry_count(cmd_tbl_t, cmd)); #endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */ #if defined(CONFIG_CMD_AMBAPP) && defined(CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP)