]> asedeno.scripts.mit.edu Git - linux.git/commit
nios2: Use an invalid TLB entry address helper function
authorNicholas Piggin <npiggin@gmail.com>
Mon, 5 Nov 2018 02:35:12 +0000 (10:35 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Wed, 6 Mar 2019 21:29:35 +0000 (05:29 +0800)
commit3437d3c886ed07863acde923a627395abb177aa9
treeaf1a7cb90e1689ec8fc31aa49cc7f501e5047997
parent0b5754b9869ba00dd4489c9d58a342cba7d6f69f
nios2: Use an invalid TLB entry address helper function

There is no need for complicated calculation for an invalid address
that maps to the same TLB index as the entry to be invalidated. Using
the TLB address plus the two top bits set puts the address into the
kernel TLB bypass range and still maps to the same cache line.

This is also a bug fix for flush_tlb_pid, which is currently unused,
but does not set PTEADDR to invalid.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/nios2/mm/tlb.c