hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/include/asm/book3s/64/slice.h
....@@ -2,8 +2,6 @@
22 #ifndef _ASM_POWERPC_BOOK3S_64_SLICE_H
33 #define _ASM_POWERPC_BOOK3S_64_SLICE_H
44
5
-#ifdef CONFIG_PPC_MM_SLICES
6
-
75 #define SLICE_LOW_SHIFT 28
86 #define SLICE_LOW_TOP (0x100000000ul)
97 #define SLICE_NUM_LOW (SLICE_LOW_TOP >> SLICE_LOW_SHIFT)
....@@ -13,15 +11,6 @@
1311 #define SLICE_NUM_HIGH (H_PGTABLE_RANGE >> SLICE_HIGH_SHIFT)
1412 #define GET_HIGH_SLICE_INDEX(addr) ((addr) >> SLICE_HIGH_SHIFT)
1513
16
-#else /* CONFIG_PPC_MM_SLICES */
17
-
18
-#define get_slice_psize(mm, addr) ((mm)->context.user_psize)
19
-#define slice_set_user_psize(mm, psize) \
20
-do { \
21
- (mm)->context.user_psize = (psize); \
22
- (mm)->context.sllp = SLB_VSID_USER | mmu_psize_defs[(psize)].sllp; \
23
-} while (0)
24
-
25
-#endif /* CONFIG_PPC_MM_SLICES */
14
+#define SLB_ADDR_LIMIT_DEFAULT DEFAULT_MAP_WINDOW_USER64
2615
2716 #endif /* _ASM_POWERPC_BOOK3S_64_SLICE_H */