Skip to content

Commit

Permalink
efi/x86: libstub: Fix typo in __efi64_argmap* name
Browse files Browse the repository at this point in the history
The actual name of the DXE services function used
is set_memory_space_attributes(), not set_memory_space_descriptor().

Change EFI mixed mode helper macro name to match the function name.

Fixes: 31f1a0e ("efi/x86: libstub: Make DXE calls mixed mode safe")
Signed-off-by: Evgeniy Baskov <baskov@ispras.ru>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
  • Loading branch information
Evgeniy Baskov authored and Ard Biesheuvel committed Jun 21, 2022
1 parent 34705a5 commit aa6d1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/efi.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static inline u32 efi64_convert_status(efi_status_t status)
#define __efi64_argmap_get_memory_space_descriptor(phys, desc) \
(__efi64_split(phys), (desc))

#define __efi64_argmap_set_memory_space_descriptor(phys, size, flags) \
#define __efi64_argmap_set_memory_space_attributes(phys, size, flags) \
(__efi64_split(phys), __efi64_split(size), __efi64_split(flags))

/*
Expand Down

0 comments on commit aa6d1ed

Please sign in to comment.