From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Sat, 13 Nov 2010 15:16:07 +1100 Subject: [U-Boot] RFC: Aligning arch initialisation sequences In-Reply-To: <201011091835.38581.vapier@gentoo.org> References: <4CD67A22.9040802@gmail.com> <201011091835.38581.vapier@gentoo.org> Message-ID: <4CDE1107.80108@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/11/10 10:35, Mike Frysinger wrote: > On Sunday, November 07, 2010 05:06:26 Graeme Russ wrote: >> Should all architectures strive to look as much like one another as >> possible? Should we accept that maybe this particular issue be thrown in >> the too hard basket? > > imo, we should strive to have these things in one common place and not just > have the different files look the sam I was afraid someone would say that. I've been having a look and a think about the situation for x86, and I cannot come up with a sane way to emulate the way the global data pointer is handled by the other arches. I essence, the gd pointer is a unique global variable available prior to relocation. On all other arches, this is achieved by using a reserved register which I do not have the luxury of on x86 :( Unless I can resolve this, I cannot move x86 in line with the other arches (i.e. init functions can only be done after relocation). I'll keep thinking about a possible solution Regards, Graeme