diff options
author | Ricardo Neri <ricardo.neri-calderon@linux.intel.com> | 2014-03-27 15:10:41 -0700 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-04-17 13:26:32 +0100 |
commit | 982e239cd2c73d2c70e14615a42c0c7391415a44 (patch) | |
tree | f0b4798deabb3863523a3cea7a795cfd6b545f4b /arch/x86/platform/efi/efi.c | |
parent | c6b406919288a617815f710175da20f3fca72065 (diff) | |
download | op-kernel-dev-982e239cd2c73d2c70e14615a42c0c7391415a44.zip op-kernel-dev-982e239cd2c73d2c70e14615a42c0c7391415a44.tar.gz |
x86/efi: Implement a __efi_call_virt macro
For i386, all the EFI system runtime services functions return efi_status_t
except efi_reset_system_system. Therefore, not all functions can be covered
by the same macro in case the macro needs to do more than calling the function
(i.e., return a value). The purpose of the __efi_call_virt macro is to be used
when no return value is expected.
For x86_64, this macro would not be needed as all the runtime services return
u64. However, the same code is used for both x86_64 and i386. Thus, the macro
__efi_call_virt is also defined to not break compilation.
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/platform/efi/efi.c')
-rw-r--r-- | arch/x86/platform/efi/efi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 8f6531e..835b248 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -202,8 +202,8 @@ static void virt_efi_reset_system(int reset_type, unsigned long data_size, efi_char16_t *data) { - efi_call_virt(reset_system, reset_type, status, - data_size, data); + __efi_call_virt(reset_system, reset_type, status, + data_size, data); } static efi_status_t virt_efi_update_capsule(efi_capsule_header_t **capsules, |