arm64: mm: add missing P4D definitions and use them consistently
authorArd Biesheuvel <ardb@kernel.org>
Wed, 10 Mar 2021 10:49:40 +0000 (11:49 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 19 Mar 2021 18:47:15 +0000 (18:47 +0000)
commitc1fd78a77704318de34ba4b780cd99a5ef96d162
treeafca95cd036effc91b6fc80ef0b7fa50e21d46d7
parent1e28eed17697bcf343c6743f0028cc3b5dd88bf0
arm64: mm: add missing P4D definitions and use them consistently

Even though level 0, 1 and 2 descriptors share the same attribute
encodings, let's be a bit more consistent about using the right one at
the right level. So add new macros for level 0/P4D definitions, and
clean up some inconsistencies involving these macros.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20210310104942.174584-2-ardb@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgalloc.h
arch/arm64/include/asm/pgtable-hwdef.h
arch/arm64/mm/kasan_init.c
arch/arm64/mm/mmu.c