[U-Boot] [PATCH] tegra: override compiler flags for low level init code

Stephen Warren swarren at wwwdotorg.org
Tue May 15 01:23:33 CEST 2012


On 05/14/2012 05:14 PM, Allen Martin wrote:
> Override -march setting for tegra to -march=armv4t for files that are
> necessary for low level init on tegra.
> 
> The recent change to use -march=armv7-a for armv7 caused a regression
> on tegra because tegra starts boot on a arm7tdmi processor before
> transferring control to the cortex-a9.  While still executing on the
> arm7tdmi there are calls to getenv_ulong() and memset() that cause an
> illegal instruction exception if compiled for armv7.
> 
> Signed-off-by: Allen Martin <amartin at nvidia.com>

Tested-by: Stephen Warren <swarren at wwwdotorg.org>

(This seems to be necessary to use gcc-4.6.1, but not gcc-4.5.3. The
Whistler patches I just sent were tested with this fix in place)


More information about the U-Boot mailing list