2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 11:43:54 +08:00
linux-next/arch/powerpc/include/asm/nohash
Christophe Leroy bde1a1335c powerpc/book3e: redefine pte_mkprivileged() and pte_mkuser()
Book3e defines both _PAGE_USER and _PAGE_PRIVILEGED, so the nohash
default pte_mkprivileged() and pte_mkuser() are not usable.

This patch redefines them for book3e.

In theorie, only pte_mkprivileged() needs to be redefined because
_PAGE_USER includes _PAGE_PRIVILEGED, but it is less confusing
to redefine both.

Fixes: a0da4bc166 ("powerpc/mm: Allow platforms to redefine some helpers")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-10-19 00:56:17 +11:00
..
32 powerpc/mm: Make pte_pgprot return all pte bits 2018-10-19 00:56:17 +11:00
64 powerpc/mm: Allow platforms to redefine some helpers 2018-10-14 18:04:09 +11:00
pgalloc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pgtable.h powerpc/mm: Make pte_pgprot return all pte bits 2018-10-19 00:56:17 +11:00
pte-book3e.h powerpc/book3e: redefine pte_mkprivileged() and pte_mkuser() 2018-10-19 00:56:17 +11:00
tlbflush.h powerpc: split asm/tlbflush.h 2018-07-30 22:48:21 +10:00