u-boot/arch/x86/lib
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
..
bios.h cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
bios.S Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
bios_pci.S cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
bios_setup.c x86: Don't relocate symbols which point to things that aren't relocated 2011-11-29 21:30:44 +11:00
board.c x86: Use fs for global data 2012-01-04 22:17:24 +11:00
bootm.c x86: Refactor the zboot innards so they can be reused with a vboot image 2011-12-19 13:26:16 +11:00
gcc.c x86: Wrap small helper functions from libgcc to avoid an ABI mismatch 2011-11-29 21:31:24 +11:00
interrupts.c cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
Makefile x86: Wrap small helper functions from libgcc to avoid an ABI mismatch 2011-11-29 21:31:24 +11:00
pcat_interrupts.c cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
pcat_timer.c cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
pci.c x86: Provide more configuration granularity 2011-11-29 21:09:52 +11:00
pci_type1.c x86: Misc PCI touchups 2011-11-29 21:10:08 +11:00
realmode.c x86: Don't relocate symbols which point to things that aren't relocated 2011-11-29 21:30:44 +11:00
realmode_switch.S Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
string.c x86: Import glibc memcpy implementation 2012-01-02 03:58:46 +11:00
timer.c cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
video.c cosmetic: checkpatch cleanup of arch/x86/lib/*.c 2011-11-29 21:03:43 +11:00
video_bios.c x86: Provide more configuration granularity 2011-11-29 21:09:52 +11:00
zimage.c x86: Add support for specifying an initrd with the zboot command 2011-12-19 13:26:17 +11:00