-
- Downloads
powerpc ioremap_prot
This adds ioremap_prot and pte_pgprot() so that one can extract protection bits from a PTE and use them to ioremap_prot() (in order to support ptrace of VM_IO | VM_PFNMAP as per Rik's patch). This moves a couple of flag checks around in the ioremap implementations of arch/powerpc. There's a side effect of allowing non-cacheable and non-guarded mappings on ppc32 which before would always have _PAGE_GUARDED set whenever _PAGE_NO_CACHE is. (standard ioremap will still set _PAGE_GUARDED, but ioremap_prot will be capable of setting such a non guarded mapping). Signed-off-by:Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Rik van Riel <riel@redhat.com> Cc: Dave Airlie <airlied@linux.ie> Cc: Hugh Dickins <hugh@veritas.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/powerpc/Kconfig 1 addition, 0 deletionsarch/powerpc/Kconfig
- arch/powerpc/mm/pgtable_32.c 16 additions, 6 deletionsarch/powerpc/mm/pgtable_32.c
- arch/powerpc/mm/pgtable_64.c 16 additions, 0 deletionsarch/powerpc/mm/pgtable_64.c
- include/asm-powerpc/io.h 4 additions, 1 deletioninclude/asm-powerpc/io.h
- include/asm-powerpc/pgtable-4k.h 3 additions, 0 deletionsinclude/asm-powerpc/pgtable-4k.h
- include/asm-powerpc/pgtable-ppc32.h 16 additions, 0 deletionsinclude/asm-powerpc/pgtable-ppc32.h
- include/asm-powerpc/pgtable-ppc64.h 8 additions, 0 deletionsinclude/asm-powerpc/pgtable-ppc64.h
Loading
Please register or sign in to comment