Skip to content
  • Simon Glass's avatar
    x86: Allow use of global_data with EFI · 8f3b9694
    Simon Glass authored
    
    
    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: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    8f3b9694