diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-11-01 07:41:06 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-11-01 07:41:06 +0100 |
commit | 05b93c19d50af2bd0d30fc000d817418ae8d33f1 (patch) | |
tree | dbfbd3f3bc13789e6450112c2013d7a2b042bdb9 /arch/x86/platform | |
parent | 24d86f59093b0bcb3756cdf47f2db10ff4e90dbb (diff) | |
parent | 0c183d92b20b5c84ca655b45ef57b3318b83eb9e (diff) | |
download | linux-05b93c19d50af2bd0d30fc000d817418ae8d33f1.tar.bz2 |
Merge branch 'linus' into x86/asm, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/uv/bios_uv.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c index b4d5e95fe4df..4a6a5a26c582 100644 --- a/arch/x86/platform/uv/bios_uv.c +++ b/arch/x86/platform/uv/bios_uv.c @@ -40,7 +40,15 @@ s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4, u64 a5) */ return BIOS_STATUS_UNIMPLEMENTED; - ret = efi_call_virt_pointer(tab, function, (u64)which, a1, a2, a3, a4, a5); + /* + * If EFI_OLD_MEMMAP is set, we need to fall back to using our old EFI + * callback method, which uses efi_call() directly, with the kernel page tables: + */ + if (unlikely(test_bit(EFI_OLD_MEMMAP, &efi.flags))) + ret = efi_call((void *)__va(tab->function), (u64)which, a1, a2, a3, a4, a5); + else + ret = efi_call_virt_pointer(tab, function, (u64)which, a1, a2, a3, a4, a5); + return ret; } EXPORT_SYMBOL_GPL(uv_bios_call); |