mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
9e6c572ff0
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 |
||
---|---|---|
.. | ||
bios.h | ||
bios.S | ||
bios_pci.S | ||
bios_setup.c | ||
board.c | ||
bootm.c | ||
gcc.c | ||
interrupts.c | ||
Makefile | ||
pcat_interrupts.c | ||
pcat_timer.c | ||
pci.c | ||
pci_type1.c | ||
realmode.c | ||
realmode_switch.S | ||
string.c | ||
timer.c | ||
video.c | ||
video_bios.c | ||
zimage.c |