integrator: stop zeroing the gd flags
PATCH 1/2 integrator: stop zeroing the gd flags
This assignment conflicts with code that add flags with gd->flags |= FOO prior to the execution of this function. Seems like a historical artifact and creates bugs with early alloc().
Cc Masahiro Yamada <[email protected]>
Signed-off-by Linus Walleij <[email protected]>
--- board/armltd/integrator/integrator.c | 2 -- 1 file changed, 2 deletions(-)
board/armltd/integrator/integrator.c +0 -2
@@ -54,8 +54,6 @@ int board_init (void)/* adress of boot parameters */ gd->bd->bi_boot_params =0x00000100 ; - gd->flags =0 ; -#ifdef CONFIG_CM_REMAP extern void cm_remap (void );cm_remap ();/* remaps writeable memory to 0x00000000 */
Signature · 1 line
1.9.3
PATCH 1/2 integrator: stop zeroing the gd flags
Quoted 10 lines · Linus Walleij
This assignment conflicts with code that add flags with
gd->flags|= FOO prior to the execution of this function. Seems like a historical artifact and creates bugs with earlyalloc().Cc Masahiro Yamada <[email protected]>Signed-off-by Linus Walleij <[email protected]>--- board/armltd/integrator/integrator.c | 2 -- 1 file changed, 2 deletions(-)
Acked-by Simon Glass <[email protected]>
PATCH 1/2 integrator: stop zeroing the gd flags
In reply to Linus WalleijQuoted 8 lines · Linus Walleij
This assignment conflicts with code that add flags with
gd->flags|= FOO prior to the execution of this function. Seems like a historical artifact and creates bugs with earlyalloc().Cc Masahiro Yamada <[email protected]>Signed-off-by Linus Walleij <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150423/c92049d3/attachment.sig>