Le 13/11/2010 05:16, Graeme Russ a écrit : > 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 :(
Dusting off ooooold knowledge of x86 and without even a glance at x86 u-boot... Since GD is the only global used pre-reloc, can you not ensure it always ends up first in the data segment, and then manage two values for the DS segment reg, one pre-reloc where only gd can be used, and one post-reloc where gd and all the other globals can be accessed? > Regards, > > Graeme Amicalement, -- Albert. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot