
Dear Aneesh V,
In message 4DD21961.7070408@ti.com you wrote:
SPL has access to .data right from the beginning. Besides this is too early. global data is not initialized yet.
Please keep in mind that this is a special situation then. The code will not work as intended for example when running form NOR flash.
Yes, I realize that. The values passed in the ARM registers need to be saved before they are lost. At the moment only SPL needs them. We do not have a board with NOR flash yet. If there is a need in the future we may have to save it in some predefined special purpose memory such as the scratchpad memory of OMAP or some location in the internal RAM that is not used. But there is no such need at the moment.
OK. Maybe you can add a comment that explains this situation.
Best regards,
Wolfgang Denk