powerpc/mm: Make some of the PGTABLE_RANGE dependency explicit
slice array size and slice mask size depend on PGTABLE_RANGE. Reviewed-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
f033d659c3
commit
78f1dbde9f
@@ -78,14 +78,18 @@ extern u64 ppc64_pft_size;
|
||||
#define GET_LOW_SLICE_INDEX(addr) ((addr) >> SLICE_LOW_SHIFT)
|
||||
#define GET_HIGH_SLICE_INDEX(addr) ((addr) >> SLICE_HIGH_SHIFT)
|
||||
|
||||
/*
|
||||
* 1 bit per slice and we have one slice per 1TB
|
||||
* Right now we support only 64TB.
|
||||
* IF we change this we will have to change the type
|
||||
* of high_slices
|
||||
*/
|
||||
#define SLICE_MASK_SIZE 8
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
struct slice_mask {
|
||||
u16 low_slices;
|
||||
/*
|
||||
* This should be derived out of PGTABLE_RANGE. For the current
|
||||
* max 64TB, u64 should be ok.
|
||||
*/
|
||||
u64 high_slices;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user