
3 Feb
2011
3 Feb
'11
7:49 a.m.
hi Aneesh,
On Wed, Feb 2, 2011 at 7:31 PM, Aneesh V aneesh@ti.com wrote:
Yes. These are variables that otherwise would go to BSS. I do this because I need them before SDRAM initialization. One of this is the gd structure. I allocate gd structure in .data that is in IRAM. Why I need gd before SDRAM? Because I try to initialize serial console as early as possible and this code has some reference to gd.
I had added serial console support in my nand_spl code for the hawkboard port(referring existing FSL boards). I think the serial console can be initialised using NS16550_init, which does not access any gd variable. This is assuming that you can use the ns16550 serial driver :)
-sughosh