Skip to content
Commit 31f1a0ed authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi/x86: libstub: Make DXE calls mixed mode safe



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>
parent ca209f8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment