From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Thu, 18 Nov 2010 21:51:00 +0100 Subject: [U-Boot] [PATCH] ARM: allocate pre-relocation global_data on pre-relocation stack In-Reply-To: <4CE58FF2.9040001@emk-elektronik.de> References: <1289750861-23050-1-git-send-email-u-boot@emk-elektronik.de> <4CE52FC5.1030509@emk-elektronik.de> <4CE54E12.3030602@free.fr> <4CE58FF2.9040001@emk-elektronik.de> Message-ID: <4CE591B4.5020508@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 18/11/2010 21:43, Reinhard Meyer a ?crit : >> I'm probably lagging behind... How do you ensure that the pre-relocation GD content ends up in the post-relocation GD (which cannot be that stack variable since the stack is going to be somewhere else)? > > Check the function yourself: > there is a memcpy of this GD to an area in SDRAM at the end... Apologies: I *was* indeed lagging behind. > Best Regards, > Reinhard Amicalement, -- Albert.