u-boot/arch/x86/cpu
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
..
coreboot x86: Add infrastructure to extract an e820 table from the coreboot tables 2011-12-19 13:26:16 +11:00
sc520 x86: Misc PCI touchups 2011-11-29 21:10:08 +11:00
config.mk Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
cpu.c x86: Use fs for global data 2012-01-04 22:17:24 +11:00
interrupts.c x86: Ensure IDT and GDT remain 16-byte aligned post relocation 2011-11-29 21:10:01 +11:00
Makefile Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
resetvec.S Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
start.S x86: Use fs for global data 2012-01-04 22:17:24 +11:00
start16.S x86: Punt cold- and warm-boot flags 2011-11-29 21:04:06 +11:00
u-boot.lds Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00