Commit 8ca7a82f authored by Ian Munsie's avatar Ian Munsie Committed by Michael Ellerman

powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize

Export mmu_kernel_ssize and mmu_linear_psize.  These are needed by the cxl
driver which has it's own MMU.  To setup the MMU cxl needs access to these.
Signed-off-by: default avatarIan Munsie <imunsie@au1.ibm.com>
Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent b0345bbc
...@@ -99,6 +99,7 @@ unsigned long htab_size_bytes; ...@@ -99,6 +99,7 @@ unsigned long htab_size_bytes;
unsigned long htab_hash_mask; unsigned long htab_hash_mask;
EXPORT_SYMBOL_GPL(htab_hash_mask); EXPORT_SYMBOL_GPL(htab_hash_mask);
int mmu_linear_psize = MMU_PAGE_4K; int mmu_linear_psize = MMU_PAGE_4K;
EXPORT_SYMBOL_GPL(mmu_linear_psize);
int mmu_virtual_psize = MMU_PAGE_4K; int mmu_virtual_psize = MMU_PAGE_4K;
int mmu_vmalloc_psize = MMU_PAGE_4K; int mmu_vmalloc_psize = MMU_PAGE_4K;
#ifdef CONFIG_SPARSEMEM_VMEMMAP #ifdef CONFIG_SPARSEMEM_VMEMMAP
...@@ -106,6 +107,7 @@ int mmu_vmemmap_psize = MMU_PAGE_4K; ...@@ -106,6 +107,7 @@ int mmu_vmemmap_psize = MMU_PAGE_4K;
#endif #endif
int mmu_io_psize = MMU_PAGE_4K; int mmu_io_psize = MMU_PAGE_4K;
int mmu_kernel_ssize = MMU_SEGSIZE_256M; int mmu_kernel_ssize = MMU_SEGSIZE_256M;
EXPORT_SYMBOL_GPL(mmu_kernel_ssize);
int mmu_highuser_ssize = MMU_SEGSIZE_256M; int mmu_highuser_ssize = MMU_SEGSIZE_256M;
u16 mmu_slb_size = 64; u16 mmu_slb_size = 64;
EXPORT_SYMBOL_GPL(mmu_slb_size); EXPORT_SYMBOL_GPL(mmu_slb_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment