Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356230
b: refs/heads/master
c: c2bdee5
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Jan 29, 2013
1 parent 135a183 commit b233238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: b422a3091748c38b68052e8ba021652590b1f25c
refs/heads/master: c2bdee594ebcf4a531afe795baf18da509438392
6 changes: 2 additions & 4 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,7 @@ kernel_physical_mapping_init(unsigned long start,
pgd_t *pgd = pgd_offset_k(start);
pud_t *pud;

next = (start + PGDIR_SIZE) & PGDIR_MASK;
if (next > end)
next = end;
next = (start & PGDIR_MASK) + PGDIR_SIZE;

if (pgd_val(*pgd)) {
pud = (pud_t *)pgd_page_vaddr(*pgd);
Expand All @@ -542,7 +540,7 @@ kernel_physical_mapping_init(unsigned long start,
}

pud = alloc_low_page();
last_map_addr = phys_pud_init(pud, __pa(start), __pa(next),
last_map_addr = phys_pud_init(pud, __pa(start), __pa(end),
page_size_mask);

spin_lock(&init_mm.page_table_lock);
Expand Down

0 comments on commit b233238

Please sign in to comment.