mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
powerpc/mm: Update pte filter for radix
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Acked-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
a2f41eb992
commit
4dfb88ca9b
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ static struct page *maybe_pte_to_page(pte_t pte)
|
|||
|
||||
static pte_t set_pte_filter(pte_t pte)
|
||||
{
|
||||
if (radix_enabled())
|
||||
return pte;
|
||||
|
||||
pte = __pte(pte_val(pte) & ~_PAGE_HPTEFLAGS);
|
||||
if (pte_looks_normal(pte) && !(cpu_has_feature(CPU_FTR_COHERENT_ICACHE) ||
|
||||
cpu_has_feature(CPU_FTR_NOEXECUTE))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue