Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245662
b: refs/heads/master
c: 935a638
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Garrett authored and H. Peter Anvin committed May 9, 2011
1 parent 682c5fc commit fc08b5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 7cb00b72876ea2451eb79d468da0e8fb9134aa8a
refs/heads/master: 935a638241b0658b9749edd060f972575f9d4a78
6 changes: 4 additions & 2 deletions trunk/arch/x86/platform/efi/efi_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ void __iomem *__init efi_ioremap(unsigned long phys_addr, unsigned long size,
return ioremap(phys_addr, size);

last_map_pfn = init_memory_mapping(phys_addr, phys_addr + size);
if ((last_map_pfn << PAGE_SHIFT) < phys_addr + size)
return NULL;
if ((last_map_pfn << PAGE_SHIFT) < phys_addr + size) {
unsigned long top = last_map_pfn << PAGE_SHIFT;
efi_ioremap(top, size - (top - phys_addr), type);
}

return (void __iomem *)__va(phys_addr);
}

0 comments on commit fc08b5d

Please sign in to comment.