• Benjamin Herrenschmidt's avatar
    powerpc/mm: Split the various pgtable-* headers based on MMU type · c605782b
    Benjamin Herrenschmidt authored
    This patch moves the definition of the PTE format for each MMU type
    to separate files instead of all in one file. This improves overall
    maintainability and will make it easier to add new types.
    
    On 64-bit, additionally, I've separated the headers relative to the
    format of the page table tree (3 vs. 4 levels for 64K vs 4K pages)
    from the headers specific to the PTE format for hash based processors,
    this will make it easier to add support for Book3 "E" 64-bit
    implementations.
    
    There are still some type-related ifdef's in the generic headers,
    we might remove them in the long run, but this patch shouldn't result
    in any code change, -hopefully- just definitions being moved around.
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    c605782b
pgtable-ppc64-4k.h 2.5 KB