From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Tue, 17 May 2011 17:46:25 +0530 Subject: [U-Boot] [PATCH v2 06/22] Add generic spl infrastructure In-Reply-To: <20110517111707.29AA81491B09@gemini.denx.de> References: <1298893591-17636-1-git-send-email-aneesh@ti.com> <1305472900-4004-7-git-send-email-aneesh@ti.com> <20110516133231.1cb2ccc8@schlenkerla.am.freescale.net> <4DD21BAA.6000601@ti.com> <20110517081530.3EBB41491B09@gemini.denx.de> <4DD24E63.3020006@ti.com> <20110517111707.29AA81491B09@gemini.denx.de> Message-ID: <4DD26719.5090003@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 Hi Wolfgang, On Tuesday 17 May 2011 04:47 PM, Wolfgang Denk wrote: > Dear Aneesh V, > > In message<4DD24E63.3020006@ti.com> you wrote: >> >>> But that's not what you are doing. You are not changing the storage >>> of the global data itself, you are changing the storage of the POINTER >>> TO the global data - and this makes no sense to me. The pointer can >>> certainly remain in a register even if the data itself is somewhere >>> else. >> >> Why do we want to waste a register in the entire SPL when global data >> can be accessed directly from .data section? > > Because the resulting code is smaller? > I was thinking that it may be faster. More number of registers at disposal may mean less number of pushes to the stack, right? I am not sure if this will make a significant difference. best regards, Aneesh