• Paul Mundt's avatar
    sh: Fix up extended mode TLB for SH-X2+ cores. · d04a0f79
    Paul Mundt authored
    The extended mode TLB requires both 64-bit PTEs and a 64-bit pgprot,
    correspondingly, the PGD also has to be 64-bits, so fix that up.
    
    The kernel and user permission bits really are decoupled in early
    cuts of the silicon, which means that we also have to set corresponding
    kernel permissions on user pages or we end up with user pages that the
    kernel simply can't touch (!).
    
    Finally, with those things corrected, really enable MMUCR.ME and
    correct the PTEA value (this simply needs to be the upper 32-bits
    of the PTE, with the size and protection bit encoding).
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    d04a0f79
pgtable.h 19.6 KB