Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99891
b: refs/heads/master
c: 05486fa
h: refs/heads/master
i:
  99889: 27b0a26
  99887: 29c740e
v: v3
  • Loading branch information
Paul Jackson authored and Ingo Molnar committed Jul 8, 2008
1 parent 8a459f0 commit 9f1ab5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 157fabf09594ab064b7ae92c81942af4b94663cb
refs/heads/master: 05486fa7e631a3be31a0bbc5a575a389a1609e94
14 changes: 9 additions & 5 deletions trunk/arch/x86/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ void __init efi_reserve_early(void)
{
unsigned long pmap;

#ifdef CONFIG_X86_32
pmap = boot_params.efi_info.efi_memmap;
#ifdef CONFIG_X86_64
pmap += (__u64)boot_params.efi_info.efi_memmap_hi << 32;
#else
pmap = (boot_params.efi_info.efi_memmap |
((__u64)boot_params.efi_info.efi_memmap_hi<<32));
#endif
memmap.phys_map = (void *)pmap;
memmap.nr_map = boot_params.efi_info.efi_memmap_size /
Expand Down Expand Up @@ -284,10 +286,12 @@ void __init efi_init(void)
int i = 0;
void *tmp;

#ifdef CONFIG_X86_32
efi_phys.systab = (efi_system_table_t *)boot_params.efi_info.efi_systab;
#ifdef CONFIG_X86_64
efi_phys.systab = (void *)efi_phys.systab +
((__u64)boot_params.efi_info.efi_systab_hi<<32);
#else
efi_phys.systab = (efi_system_table_t *)
(boot_params.efi_info.efi_systab |
((__u64)boot_params.efi_info.efi_systab_hi<<32));
#endif

efi.systab = early_ioremap((unsigned long)efi_phys.systab,
Expand Down

0 comments on commit 9f1ab5f

Please sign in to comment.