Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148170
b: refs/heads/master
c: 55cd636
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Pekka Enberg committed Jun 12, 2009
1 parent 13a5537 commit 8ed8481
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 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: 28be225b23b115573e0ecc8ef9996f42a1652f74
refs/heads/master: 55cd63676e0c5710fbe1ea86dfd9f8ea9aaa90f2
2 changes: 1 addition & 1 deletion trunk/arch/x86/include/asm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ static inline void flush_tlb_kernel_range(unsigned long start,
flush_tlb_all();
}

extern void zap_low_mappings(void);
extern void zap_low_mappings(bool early);

#endif /* _ASM_X86_TLBFLUSH_H */
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)

err = do_boot_cpu(apicid, cpu);

zap_low_mappings();
zap_low_mappings(false);
low_mappings = 0;
#else
err = do_boot_cpu(apicid, cpu);
Expand Down
10 changes: 7 additions & 3 deletions trunk/arch/x86/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ static inline void save_pg_dir(void)
}
#endif /* !CONFIG_ACPI_SLEEP */

void zap_low_mappings(void)
void zap_low_mappings(bool early)
{
int i;

Expand All @@ -581,7 +581,11 @@ void zap_low_mappings(void)
set_pgd(swapper_pg_dir+i, __pgd(0));
#endif
}
flush_tlb_all();

if (early)
__flush_tlb();
else
flush_tlb_all();
}

pteval_t __supported_pte_mask __read_mostly = ~(_PAGE_NX | _PAGE_GLOBAL | _PAGE_IOMAP);
Expand Down Expand Up @@ -956,7 +960,7 @@ void __init mem_init(void)
test_wp_bit();

save_pg_dir();
zap_low_mappings();
zap_low_mappings(true);
}

#ifdef CONFIG_MEMORY_HOTPLUG
Expand Down

0 comments on commit 8ed8481

Please sign in to comment.