Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339511
b: refs/heads/master
c: e406785
h: refs/heads/master
i:
  339509: 257ea41
  339507: d02fb80
  339503: 583416a
v: v3
  • Loading branch information
Nicolas Pitre authored and Russell King committed Nov 13, 2012
1 parent db8db4e commit 41e71b7
Show file tree
Hide file tree
Showing 2 changed files with 11 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: b62655f4c6f3e4d21934eee14ac2ac5cd479c97c
refs/heads/master: e40678559fdf3f56ce9a349365fbf39e1f63ecc0
14 changes: 10 additions & 4 deletions trunk/arch/arm/mm/idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ static int __init init_static_idmap(void)
(long long)idmap_start, (long long)idmap_end);
identity_mapping_add(idmap_pgd, idmap_start, idmap_end);

/* Flush L1 for the hardware to see this page table content */
flush_cache_louis();

return 0;
}
early_initcall(init_static_idmap);
Expand All @@ -103,12 +106,15 @@ early_initcall(init_static_idmap);
*/
void setup_mm_for_reboot(void)
{
/* Clean and invalidate L1. */
flush_cache_all();

/* Switch to the identity mapping. */
cpu_switch_mm(idmap_pgd, &init_mm);

/* Flush the TLB. */
#ifdef CONFIG_CPU_HAS_ASID
/*
* We don't have a clean ASID for the identity mapping, which
* may clash with virtual addresses of the previous page tables
* and therefore potentially in the TLB.
*/
local_flush_tlb_all();
#endif
}

0 comments on commit 41e71b7

Please sign in to comment.