diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-11-29 15:07:01 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-12-04 09:45:01 +0100 |
commit | 32ea4c14999006fea541b5f78d008fffc1656849 (patch) | |
tree | 5f3a1af0e2a9ec621d1bfebd7e8eb51446810d07 /arch/powerpc/include/asm/pgtable.h | |
parent | powerpc/mm: add helpers to get/set mm.context->pte_frag (diff) | |
download | linux-32ea4c14999006fea541b5f78d008fffc1656849.tar.xz linux-32ea4c14999006fea541b5f78d008fffc1656849.zip |
powerpc/mm: Extend pte_fragment functionality to PPC32
In order to allow the 8xx to handle pte_fragments, this patch
extends the use of pte_fragments to PPC32 platforms.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/pgtable.h')
-rw-r--r-- | arch/powerpc/include/asm/pgtable.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h index 314a2890a972..56ef5437eb2f 100644 --- a/arch/powerpc/include/asm/pgtable.h +++ b/arch/powerpc/include/asm/pgtable.h @@ -125,6 +125,10 @@ static inline void pte_frag_set(mm_context_t *ctx, void *p) ctx->pte_frag = p; } #else +#define PTE_FRAG_NR 1 +#define PTE_FRAG_SIZE_SHIFT PAGE_SHIFT +#define PTE_FRAG_SIZE (1UL << PTE_FRAG_SIZE_SHIFT) + static inline void *pte_frag_get(mm_context_t *ctx) { return NULL; |