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_pci.S | ||
bios_setup.c | ||
bios.h | ||
bios.S | ||
board.c | ||
bootm.c | ||
gcc.c | ||
interrupts.c | ||
Makefile | ||
pcat_interrupts.c | ||
pcat_timer.c | ||
pci_type1.c | ||
pci.c | ||
realmode_switch.S | ||
realmode.c | ||
string.c | ||
timer.c | ||
video_bios.c | ||
video.c | ||
zimage.c |