Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212058
b: refs/heads/master
c: 9b86152
h: refs/heads/master
v: v3
  • Loading branch information
Haicheng Li authored and H. Peter Anvin committed Aug 26, 2010
1 parent 8d6ffaa commit f4ba792
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 6afb5157b9eba4092e2f0f54d24a3806409bdde5
refs/heads/master: 9b861528a8012e7bc4d1f7bae07395b225331477
9 changes: 8 additions & 1 deletion trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,9 @@ kernel_physical_mapping_init(unsigned long start,
unsigned long end,
unsigned long page_size_mask)
{

bool pgd_changed = false;
unsigned long next, last_map_addr = end;
unsigned long addr;

start = (unsigned long)__va(start);
end = (unsigned long)__va(end);
Expand Down Expand Up @@ -593,7 +594,12 @@ kernel_physical_mapping_init(unsigned long start,
spin_lock(&init_mm.page_table_lock);
pgd_populate(&init_mm, pgd, __va(pud_phys));
spin_unlock(&init_mm.page_table_lock);
pgd_changed = true;
}

if (pgd_changed)
sync_global_pgds(addr, end);

__flush_tlb_all();

return last_map_addr;
Expand Down Expand Up @@ -1033,6 +1039,7 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node)
}

}
sync_global_pgds((unsigned long)start_page, end);
return 0;
}

Expand Down

0 comments on commit f4ba792

Please sign in to comment.