]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Allow use of global_data with EFI
authorSimon Glass <sjg@chromium.org>
Fri, 31 Jul 2015 15:31:35 +0000 (09:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:53 +0000 (08:00 +0200)
commita0f5ddedace59ca699ec262b7396bc750148aeb8
tree6393014195ce2a88dec9318e72cd010c608a8a3a
parent22cda513444308bcbbebb25caa452730ce105d67
x86: Allow use of global_data with EFI

On x86 the global_data pointer is provided through a somewhat-bizarre and
x86-specific mechanism: the F segment register is set to a pointer to the
start of global_data, so that accesses can use this build-in register.

When running as an EFI application we don't want to mess with the Global
Descriptor Table (GDT) and there is little advantage (in terms of code size)
to doing so.

Allow global_data to be a simple variable in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/global_data.h