From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 04 Jun 2012 12:00:35 -0600 Subject: [U-Boot] [PATCH] tegra: override compiler flags for low level init code In-Reply-To: <20120604175439.GA6692@nvidia.com> References: <1336162232-19714-1-git-send-email-amartin@nvidia.com> <1337037279-18562-1-git-send-email-amartin@nvidia.com> <4FB193F5.5000704@wwwdotorg.org> <20120604175439.GA6692@nvidia.com> Message-ID: <4FCCF7C3.1080309@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/04/2012 11:54 AM, Allen Martin wrote: > On Mon, May 14, 2012 at 04:23:33PM -0700, Stephen Warren wrote: >> 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 >> >> Tested-by: Stephen Warren >> >> (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) > > Hi Tom, could you pick this up in u-boot-tegra? Without it tegra is > currently broken in both u-boot-tegra and u-boot gits depending on the > compiler you use. It's been there for a while, I believe, at least in u-boot-tegra/master.