[U-Boot] RFC: Aligning arch initialisation sequences
Graeme Russ
graeme.russ at gmail.com
Sat Nov 13 05:16:07 CET 2010
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
More information about the U-Boot
mailing list