efi: Add mixed-mode thunk recipe for GetMemoryAttributes
authorArd Biesheuvel <ardb@kernel.org>
Fri, 10 Feb 2023 14:08:59 +0000 (15:08 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 10 Feb 2023 14:20:55 +0000 (15:20 +0100)
commit45d5165426ae3ceb35e2c35ad675e7dacd2aa59e
treecdf5c4a2e0d3237857270e334f8d85c991cb71c9
parent93be2859e26c3be847780c65313da1b261833451
efi: Add mixed-mode thunk recipe for GetMemoryAttributes

EFI mixed mode on x86 requires a recipe for each protocol method or
firmware service that takes u64 arguments by value, or returns pointer
or 'native int' (UINTN) values by reference (e.g,, through a void ** or
unsigned long * parameter), due to the fact that these types cannot be
translated 1:1 between the i386 and MS x64 calling conventions.

So add the missing recipe for GetMemoryAttributes, which is not actually
being used yet on x86, but the code exists and can be built for x86 so
let's make sure it works as it should.

Cc: Evgeniy Baskov <baskov@ispras.ru>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/efi.h