powerpc/mm: Merge various PTE bits and accessors definitions
Now that they are almost identical, we can merge some of the definitions
related to the PTE format into common files.
This creates a new pte-common.h which is included by both 32 and 64-bit
right after the CPU specific pte-*.h file, and which defines some
bits to "default" values if they haven't been defined already, and
then provides a generic definition of most of the bit combinations
based on these and exposed to the rest of the kernel.
I also moved to the common pgtable.h most of the "small" accessors to the
PTE bits and modification helpers (pte_mk*). The actual accessors remain
in their separate files.
Signed-off-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Showing
- arch/powerpc/include/asm/pgtable-ppc32.h 2 additions, 202 deletionsarch/powerpc/include/asm/pgtable-ppc32.h
- arch/powerpc/include/asm/pgtable-ppc64.h 1 addition, 131 deletionsarch/powerpc/include/asm/pgtable-ppc64.h
- arch/powerpc/include/asm/pgtable.h 50 additions, 4 deletionsarch/powerpc/include/asm/pgtable.h
- arch/powerpc/include/asm/pte-common.h 180 additions, 0 deletionsarch/powerpc/include/asm/pte-common.h
arch/powerpc/include/asm/pte-common.h
0 → 100644
Please register or sign in to comment