Skip to content

Commit

Permalink
[ARM] Fix mm initialisation with write buffered write allocate caches
Browse files Browse the repository at this point in the history
It seems that without the extra tlb flush, we may end up faulting
during the early kernel initialisation because the TLB can't see
the updated page tables.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 2, 2005
1 parent bfca945 commit 6bf7bd6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/arm/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,17 @@ static void __init devicemaps_init(struct machine_desc *mdesc)

/*
* Ask the machine support to map in the statically mapped devices.
* After this point, we can start to touch devices again.
*/
if (mdesc->map_io)
mdesc->map_io();

/*
* Finally flush the tlb again - this ensures that we're in a
* consistent state wrt the writebuffer if the writebuffer needs
* draining. After this point, we can start to touch devices
* again.
*/
local_flush_tlb_all();
}

/*
Expand Down

0 comments on commit 6bf7bd6

Please sign in to comment.