From: Reinhard Meyer Date: Sun, 28 Nov 2010 06:36:38 +0100 Subject: [U-Boot] [PATCH] ARM: allocate pre-relocation global_data on pre-relocation stack In-Reply-To: <4CE591B4.5020508@free.fr> 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> <4CE591B4.5020508@free.fr> Message-ID: <4CF1EA66.7030703@emk-elektronik.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 Albert ARIBAUD, > 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. So what is going to happen about this patch? I see no objections or complaints anywhere, but I see boards getting fixed using GENERATED_GBL_DATA_SIZE. Note that using GENERATED_GBL_DATA_SIZE does not break with my patch, it just wastes space. Best Regards, Reinhard