Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334604
b: refs/heads/master
c: 1bbbbe7
h: refs/heads/master
v: v3
  • Loading branch information
Jacob Shin authored and H. Peter Anvin committed Oct 17, 2012
1 parent bf0fca2 commit d73860b
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 961c79761dda351b5fb263a0654b98daac130b7a
refs/heads/master: 1bbbbe779aabe1f0768c2bf8f8c0a5583679b54a
17 changes: 15 additions & 2 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,21 @@ void __init setup_arch(char **cmdline_p)

#ifdef CONFIG_X86_64
if (max_pfn > max_low_pfn) {
max_pfn_mapped = init_memory_mapping(1UL<<32,
max_pfn<<PAGE_SHIFT);
int i;
for (i = 0; i < e820.nr_map; i++) {
struct e820entry *ei = &e820.map[i];

if (ei->addr + ei->size <= 1UL << 32)
continue;

if (ei->type == E820_RESERVED)
continue;

max_pfn_mapped = init_memory_mapping(
ei->addr < 1UL << 32 ? 1UL << 32 : ei->addr,
ei->addr + ei->size);
}

/* can we preseve max_low_pfn ?*/
max_low_pfn = max_pfn;
}
Expand Down

0 comments on commit d73860b

Please sign in to comment.