efi/libstub: Add memory attribute protocol definitions
authorEvgeniy Baskov <baskov@ispras.ru>
Tue, 22 Nov 2022 11:12:31 +0000 (14:12 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 30 Jan 2023 12:11:34 +0000 (13:11 +0100)
commit79729f26b074a5d2722c27fa76cc45ef721e65cd
treee99860079f0772921c2c1b96dcac9166353eedf7
parent0217a40d7ba6e71d7f3422fbe89b436e8ee7ece7
efi/libstub: Add memory attribute protocol definitions

EFI_MEMORY_ATTRIBUTE_PROTOCOL servers as a better alternative to
DXE services for setting memory attributes in EFI Boot Services
environment. This protocol is better since it is a part of UEFI
specification itself and not UEFI PI specification like DXE
services.

Add EFI_MEMORY_ATTRIBUTE_PROTOCOL definitions.
Support mixed mode properly for its calls.

Tested-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Evgeniy Baskov <baskov@ispras.ru>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/efi.h
drivers/firmware/efi/libstub/efistub.h
include/linux/efi.h