Skip to content

Commit 9ad6bb3

Browse files
SiFiveHollandpalmer-dabbelt
authored andcommitted
riscv: Remove PGDIR_SIZE_L3 and TASK_SIZE_MIN
TASK_SIZE_MIN is unused since commit 085e2ff ("efi: libstub: Drop randomization of runtime memory map"). PGDIR_SIZE_L3 is only used in the definition of TASK_SIZE_MIN. Signed-off-by: Samuel Holland <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 4cece76 commit 9ad6bb3

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

arch/riscv/include/asm/pgtable-64.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ extern bool pgtable_l5_enabled;
1616
#define PGDIR_SHIFT_L3 30
1717
#define PGDIR_SHIFT_L4 39
1818
#define PGDIR_SHIFT_L5 48
19-
#define PGDIR_SIZE_L3 (_AC(1, UL) << PGDIR_SHIFT_L3)
20-
2119
#define PGDIR_SHIFT (pgtable_l5_enabled ? PGDIR_SHIFT_L5 : \
2220
(pgtable_l4_enabled ? PGDIR_SHIFT_L4 : PGDIR_SHIFT_L3))
2321
/* Size of region mapped by a page global directory */

arch/riscv/include/asm/pgtable.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,6 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)
870870
*/
871871
#ifdef CONFIG_64BIT
872872
#define TASK_SIZE_64 (PGDIR_SIZE * PTRS_PER_PGD / 2)
873-
#define TASK_SIZE_MIN (PGDIR_SIZE_L3 * PTRS_PER_PGD / 2)
874873

875874
#ifdef CONFIG_COMPAT
876875
#define TASK_SIZE_32 (_AC(0x80000000, UL) - PAGE_SIZE)
@@ -882,7 +881,6 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)
882881

883882
#else
884883
#define TASK_SIZE FIXADDR_START
885-
#define TASK_SIZE_MIN TASK_SIZE
886884
#endif
887885

888886
#else /* CONFIG_MMU */

0 commit comments

Comments
 (0)