[U-Boot] generic_board: reduce the redundancy of gd_t struct members

Tom Rini trini at ti.com
Fri Jun 7 20:19:03 CEST 2013


On Mon, May 27, 2013 at 12:37:30AM -0000, Masahiro Yamada wrote:

> This commit refactors common/board_f.c and common/board_r.c
> in order to delete the dest_addr and dest_addr_sp from
> gd_t struct.
> 
> As mentioned as follows in include/asm-generic/global_data.h,
> 
>   /* TODO: is this the same as relocaddr, or something else? */
>   unsigned long dest_addr;        /* Post-relocation address of U-Boot */
> 
> dest_addr is the same as relocaddr.
> Likewise, dest_addr_sp is the same as start_addr_sp.
> 
> It seemed dest_addr/dest_addr_sp was used only as a scratch variable
> to calculate relocaddr/start_addr_sp, respectively.
> 
> With a little refactoring, we can delete dest_addr and dest_addr_sp.
> 
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Cc: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130607/40d68e39/attachment.pgp>


More information about the U-Boot mailing list