From: Tom Rini Date: Mon, 16 Dec 2013 09:13:58 -0500 Subject: [U-Boot] board_f: explicitly disable console on early boot In-Reply-To: <1385577160-14826-1-git-send-email-abrodkin@synopsys.com> References: <1385577160-14826-1-git-send-email-abrodkin@synopsys.com> Message-ID: <20131216141358.GJ420@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Nov 27, 2013 at 10:32:40PM +0400, Alexey Brodkin wrote: > If U-Boot build with DEBUG enabled/defined the first call of "debug" > function (that dumps data to any available console) will happen before > zeroing of initial "gd" in init call "zero_global_data" in > "init_sequence_f". > > And if stack was not filled with zeros chances are high that > "gd->have_console" won't be 0. In its turn it will cause attempt to > output things to non-initialized yet serial console. > > So for safety and predictability we set "gd->have_console = 0". > > Signed-off-by: Alexey Brodkin > > Cc: Mischa Jonker > Cc: Wolfgang Denk > Cc: Simon Glass > Acked-by: Simon Glass 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: