]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sparc/lib/board.c
Merge remote-tracking branch 'u-boot-ti/master'
[karo-tx-uboot.git] / arch / sparc / lib / board.c
index ff0e0f2fd04cce0b57a2f409c2cd76f91f4a9a63..32d025a34237c89c443314035f58c3f6264105f3 100644 (file)
@@ -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)