• Ard Biesheuvel's avatar
    efi/x86: libstub: Make DXE calls mixed mode safe · 31f1a0ed
    Ard Biesheuvel authored
    The newly added DXE calls use 64-bit quantities, which means we need to
    marshall them explicitly when running in mixed mode. Currently, we get
    away without it because we just bail when GetMemorySpaceDescriptor()
    fails, which is guaranteed to happen due to the function argument mixup.
    
    Let's fix this properly, though, by defining the macros that describe
    how to marshall the arguments. While at it, drop an incorrect cast on a
    status variable.
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    31f1a0ed
efi.h 12.4 KB