
1 Jul
2004
1 Jul
'04
10:29 p.m.
In message 71555548814716479478431542AA5F8ADF8BAC@dlee2k04.ent.ti.com you wrote:
I just found that lib_arm/board.c:start_armboot()'s GCC3.4.0 generated code sequence breaks ARM u-boot's. I am using the GCC3.4.0 which CodeSourcery put out.
I have found what appears to be a fix. A compiler optimization barrier needs to be inserted after gd (AKA R8) is initialized. See the below snippit.
With out this barrier gd is calculated into a temporary register, and when the gd->bd is actually attempted an unitilized R8 is used causing a fatal abort.
Looks like a compiler bug to me. Anyway. Added. Thanks.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
The high cost of living hasn't affected its popularity.