Skip to content
Commit 4f22ca7e authored by Max Filippov's avatar Max Filippov
Browse files

xtensa: simplify coherent_kvaddr logic



Functions coherent_kvaddr, clear_page_alias and copy_page_alias use
physical address 0 as a special value that means 'this page is in the
KSEG mapping and its existing virtual address has the same color as the
virtual address of its future mapping, so don't map it to the
TLBTEMP_BASE area'.

Simplify this logic and drop special handling of low memory pages/pages
with coherent mapping and always use TLBTEMP_BASE area.

Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 2da75594
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment