[PATCH 0/2] sh: get rid of __ARCH_USE_5LEVEL_HACK

From: Mike Rapoport
Date: Tue Dec 17 2019 - 09:21:59 EST


From: Mike Rapoport <rppt@xxxxxxxxxxxxx>

Hi,

These patches update the SuperH page table folding/unfolding to take into
account the 5th level.

Mike Rapoport (2):
sh: drop __pXd_offset() macros that duplicate pXd_index() ones
sh: add support for folded p4d page tables

arch/sh/include/asm/pgtable-2level.h | 1 -
arch/sh/include/asm/pgtable-3level.h | 1 -
arch/sh/include/asm/pgtable_32.h | 5 ++---
arch/sh/include/asm/pgtable_64.h | 5 ++---
arch/sh/kernel/io_trapped.c | 7 ++++++-
arch/sh/mm/cache-sh4.c | 4 +++-
arch/sh/mm/cache-sh5.c | 7 ++++++-
arch/sh/mm/fault.c | 26 +++++++++++++++++++++++---
arch/sh/mm/hugetlbpage.c | 28 ++++++++++++++++++----------
arch/sh/mm/init.c | 15 +++++++++++----
arch/sh/mm/kmap.c | 2 +-
arch/sh/mm/tlbex_32.c | 6 +++++-
arch/sh/mm/tlbex_64.c | 7 ++++++-
13 files changed, 83 insertions(+), 31 deletions(-)

--
2.24.0