arm64/mm: generalize PMD_PRESENT_INVALID for all levels
authorRyan Roberts <ryan.roberts@arm.com>
Fri, 3 May 2024 14:45:59 +0000 (15:45 +0100)
committerWill Deacon <will@kernel.org>
Fri, 3 May 2024 16:02:16 +0000 (17:02 +0100)
commitb28c74e259675aa0eade6be5d5efaa4d72e06c83
tree69cb76aaf97610682f94b72d58c2c526c4023464
parent0e9df1c905d8293d333ace86c13d147382f5caf9
arm64/mm: generalize PMD_PRESENT_INVALID for all levels

As preparation for the next patch, which frees up the PTE_PROT_NONE
present pte and swap pte bit, generalize PMD_PRESENT_INVALID to
PTE_PRESENT_INVALID. This will then be used to mark PROT_NONE ptes (and
entries at any other level) in the next patch.

While we're at it, fix up the swap pte format comment to include
PTE_PRESENT_INVALID. This is not new, it just wasn't previously
documented.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Link: https://lore.kernel.org/r/20240503144604.151095-2-ryan.roberts@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/pgtable-prot.h
arch/arm64/include/asm/pgtable.h