]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SPARC64]: Fix D-cache corruption in mremap
authorDavid S. Miller <davem@sunset.sfo1.dsl.speakeasy.net>
Fri, 2 Jun 2006 00:47:25 +0000 (17:47 -0700)
committerDavid S. Miller <davem@sunset.sfo1.dsl.speakeasy.net>
Fri, 2 Jun 2006 00:47:25 +0000 (17:47 -0700)
commit0b0968a3e691771bf87e1ce747b2c7d23b5526c8
tree71787e376b7aef54b48e99d15a0fc11c7cf7ee8d
parent951bc82c53f30ec6b4c2d04a051e74ea9a89b669
[SPARC64]: Fix D-cache corruption in mremap

If we move a mapping from one virtual address to another,
and this changes the virtual color of the mapping to those
pages, we can see corrupt data due to D-cache aliasing.

Check for and deal with this by overriding the move_pte()
macro.  Set things up so that other platforms can cleanly
override the move_pte() macro too.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-generic/pgtable.h
include/asm-mips/pgtable.h
include/asm-sparc64/pgtable.h