From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 11 Feb 2014 21:57:08 +0100 Subject: [U-Boot] [PATCH] driver/mxc_i2c: Move static data structure to global_data In-Reply-To: <52FA8205.1090206@freescale.com> References: <1392069772-24742-1-git-send-email-yorksun@freescale.com> <52F98C18.7020402@freescale.com> <52FA7915.8000307@boundarydevices.com> <52FA7DFD.5060406@freescale.com> <20140211195918.69BCE38032B@gemini.denx.de> <52FA8205.1090206@freescale.com> Message-ID: <20140211205708.A76B0380439@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear York, In message <52FA8205.1090206@freescale.com> you wrote: > > > So ideally keep this data on the stack, and if there is no way around > > it, in the global data structure. > > Agreed. I tried to use global data at first, which upsets Tom. Tom suggested to > use linker script. I guess he was under the impression I was using SPL. Let me > try harder to use stack. well, to do something with the linker script, you need some memory somewhere you can use for this purpose. Your example showed SRAM. so if you do have SRAM on that board - why do you not use it for stack and GD? Where is your steck and GD right now? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Program maintenance is an entropy-increasing process, and even its most skilfull execution only delays the subsidence of the system into unfixable obsolescence. - Fred Brooks, "The Mythical Man Month"