]> asedeno.scripts.mit.edu Git - linux.git/blob - arch/powerpc/include/asm/nohash/32/slice.h
Merge tag 'powerpc-4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
[linux.git] / arch / powerpc / include / asm / nohash / 32 / slice.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_NOHASH_32_SLICE_H
3 #define _ASM_POWERPC_NOHASH_32_SLICE_H
4
5 #ifdef CONFIG_PPC_MM_SLICES
6
7 #define SLICE_LOW_SHIFT         26      /* 64 slices */
8 #define SLICE_LOW_TOP           (0x100000000ull)
9 #define SLICE_NUM_LOW           (SLICE_LOW_TOP >> SLICE_LOW_SHIFT)
10 #define GET_LOW_SLICE_INDEX(addr)       ((addr) >> SLICE_LOW_SHIFT)
11
12 #define SLICE_HIGH_SHIFT        0
13 #define SLICE_NUM_HIGH          0ul
14 #define GET_HIGH_SLICE_INDEX(addr)      (addr & 0)
15
16 #endif /* CONFIG_PPC_MM_SLICES */
17
18 #endif /* _ASM_POWERPC_NOHASH_32_SLICE_H */