From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Thu, 03 Feb 2011 12:52:52 +0530 Subject: [U-Boot] BSS footprint of FAT very high - SPL issues In-Reply-To: References: <4D4798E2.3050500@ti.com> <20110201075521.60484B187@gemini.denx.de> <4D47C1C9.1020002@ti.com> <20110201100312.241C1B187@gemini.denx.de> <4D495966.4010009@ti.com> <4D495E02.4080509@free.fr> <4D4963D6.3020505@ti.com> Message-ID: <4D4A57CC.1080807@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Sughosh, On Thursday 03 February 2011 12:19 PM, sughosh ganu wrote: > hi Aneesh, > > On Wed, Feb 2, 2011 at 7:31 PM, Aneesh V > 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 :) Thanks for the input. Yes, we are using ns16550 driver. However, I would still need gd because it is getting used in other places like the mmc driver that I have to use in the SPL. Best regards, Aneesh