Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369919
b: refs/heads/master
c: 15b9c35
h: refs/heads/master
i:
  369917: 54cbec2
  369915: 323240b
  369911: ece8714
  369903: c510b4c
  369887: d9cb189
  369855: 8c080da
  369791: cfd3648
  369663: d89d107
v: v3
  • Loading branch information
Borislav Petkov authored and Matt Fleming committed Mar 4, 2013
1 parent 93a43d6 commit e10ccbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: 073093819d6d9f363060d3f7584ca1ff987081c4
refs/heads/master: 15b9c359f288b09003cb70f7ed204affc0c6614d
19 changes: 10 additions & 9 deletions trunk/arch/x86/platform/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,24 +350,25 @@ static void __init do_add_efi_memmap(void)

int __init efi_memblock_x86_reserve_range(void)
{
struct efi_info *e = &boot_params.efi_info;
unsigned long pmap;

#ifdef CONFIG_X86_32
/* Can't handle data above 4GB at this time */
if (boot_params.efi_info.efi_memmap_hi) {
if (e->efi_memmap_hi) {
pr_err("Memory map is above 4GB, disabling EFI.\n");
return -EINVAL;
}
pmap = boot_params.efi_info.efi_memmap;
pmap = e->efi_memmap;
#else
pmap = (boot_params.efi_info.efi_memmap |
((__u64)boot_params.efi_info.efi_memmap_hi<<32));
pmap = (e->efi_memmap | ((__u64)e->efi_memmap_hi << 32));
#endif
memmap.phys_map = (void *)pmap;
memmap.nr_map = boot_params.efi_info.efi_memmap_size /
boot_params.efi_info.efi_memdesc_size;
memmap.desc_version = boot_params.efi_info.efi_memdesc_version;
memmap.desc_size = boot_params.efi_info.efi_memdesc_size;
memmap.phys_map = (void *)pmap;
memmap.nr_map = e->efi_memmap_size /
e->efi_memdesc_size;
memmap.desc_size = e->efi_memdesc_size;
memmap.desc_version = e->efi_memdesc_version;

memblock_reserve(pmap, memmap.nr_map * memmap.desc_size);

return 0;
Expand Down

0 comments on commit e10ccbd

Please sign in to comment.