]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64/mm: Simplify protection flag creation for kernel huge mappings
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 27 May 2019 03:58:15 +0000 (09:28 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 Jun 2019 12:49:58 +0000 (13:49 +0100)
commitf7f0097af67c3c119f6dc7046234630e77f4877e
tree752abec1505a01e7b67497e67afa18b057aec90a
parent7b8c87b297a7c1b3badabc1d054b6e0b758952df
arm64/mm: Simplify protection flag creation for kernel huge mappings

Even though they have got the same value, PMD_TYPE_SECT and PUD_TYPE_SECT
get used for kernel huge mappings. But before that first the table bit gets
cleared using leaf level PTE_TABLE_BIT. Though functionally they are same,
we should use page table level specific macros to be consistent as per the
MMU specifications. Create page table level specific wrappers for kernel
huge mapping entries and just drop mk_sect_prot() which does not have any
other user.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgtable.h
arch/arm64/mm/mmu.c