u-boot/arch/x86/include/asm
Graeme Russ 9e6c572ff0 x86: Use fs for global data
Use the base address of the 'F' segment as a pointer to the global data
structure. By adding the linear address (i.e. the 'D' segment address) as
the first word of the global data structure, the address of the global data
relative to the 'D' segment can be found simply, for example, by:

	fs movl 0, %eax

This makes the gd 'pointer' writable prior to relocation (by reloading the
Global Desctriptor Table) which brings x86 into line with all other arches

NOTE: Writing to the gd 'pointer' is expensive (but we only do it
twice) but using it to access global data members (read and write) is
still fairly cheap

--
Changes for v2:
 - Rebased against changes made to patch #3
 - Removed extra indent
 - Tweaked commit message
2012-01-04 22:17:24 +11:00
..
arch-coreboot x86: Import code from coreboot's libpayload to parse the coreboot table 2011-12-19 13:26:15 +11:00
arch-sc520 sc520: Create arch asm-offsets 2011-11-29 21:07:42 +11:00
video x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
bitops.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
bootparam.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
byteorder.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
cache.h x86: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 2011-10-23 20:50:43 +02:00
config.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
e820.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
errno.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
global_data.h x86: Use fs for global data 2012-01-04 22:17:24 +11:00
i8254.h Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
i8259.h Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
ibmpc.h Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
interrupt.h Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
io.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
ioctl.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
ist.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
pci.h x86: Misc PCI touchups 2011-11-29 21:10:08 +11:00
posix_types.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
processor-flags.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
processor.h x86: Use fs for global data 2012-01-04 22:17:24 +11:00
ptrace.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
realmode.h cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
string.h x86: Import glibc memcpy implementation 2012-01-02 03:58:46 +11:00
types.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
u-boot-x86.h x86: Use fs for global data 2012-01-04 22:17:24 +11:00
u-boot.h image: push default arch values to arch headers 2011-10-05 22:22:15 +02:00
unaligned.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
zimage.h x86: Refactor the zboot innards so they can be reused with a vboot image 2011-12-19 13:26:16 +11:00