aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/efi.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c
index 473c89fe5073..a03ca36a302c 100644
--- a/arch/x86/kernel/efi.c
+++ b/arch/x86/kernel/efi.c
@@ -242,9 +242,11 @@ void __init efi_reserve_early(void)
242{ 242{
243 unsigned long pmap; 243 unsigned long pmap;
244 244
245#ifdef CONFIG_X86_32
245 pmap = boot_params.efi_info.efi_memmap; 246 pmap = boot_params.efi_info.efi_memmap;
246#ifdef CONFIG_X86_64 247#else
247 pmap += (__u64)boot_params.efi_info.efi_memmap_hi << 32; 248 pmap = (boot_params.efi_info.efi_memmap |
249 ((__u64)boot_params.efi_info.efi_memmap_hi<<32));
248#endif 250#endif
249 memmap.phys_map = (void *)pmap; 251 memmap.phys_map = (void *)pmap;
250 memmap.nr_map = boot_params.efi_info.efi_memmap_size / 252 memmap.nr_map = boot_params.efi_info.efi_memmap_size /
@@ -284,10 +286,12 @@ void __init efi_init(void)
284 int i = 0; 286 int i = 0;
285 void *tmp; 287 void *tmp;
286 288
289#ifdef CONFIG_X86_32
287 efi_phys.systab = (efi_system_table_t *)boot_params.efi_info.efi_systab; 290 efi_phys.systab = (efi_system_table_t *)boot_params.efi_info.efi_systab;
288#ifdef CONFIG_X86_64 291#else
289 efi_phys.systab = (void *)efi_phys.systab + 292 efi_phys.systab = (efi_system_table_t *)
290 ((__u64)boot_params.efi_info.efi_systab_hi<<32); 293 (boot_params.efi_info.efi_systab |
294 ((__u64)boot_params.efi_info.efi_systab_hi<<32));
291#endif 295#endif
292 296
293 efi.systab = early_ioremap((unsigned long)efi_phys.systab, 297 efi.systab = early_ioremap((unsigned long)efi_phys.systab,