summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/mmu.c
diff options
context:
space:
mode:
authorMark Rutland2016-01-25 12:45:11 +0100
committerCatalin Marinas2016-02-16 16:10:46 +0100
commitfca082bfb543ccaaff864fc0892379ccaa1711cd (patch)
treef8863ecb742c2a457543541d668e64d6215f6fc6 /arch/arm64/mm/mmu.c
parentarm64: mm: allow passing a pgdir to alloc_init_* (diff)
downloadkernel-qcow2-linux-fca082bfb543ccaaff864fc0892379ccaa1711cd.tar.gz
kernel-qcow2-linux-fca082bfb543ccaaff864fc0892379ccaa1711cd.tar.xz
kernel-qcow2-linux-fca082bfb543ccaaff864fc0892379ccaa1711cd.zip
arm64: ensure _stext and _etext are page-aligned
Currently we have separate ALIGN_DEBUG_RO{,_MIN} directives to align _etext and __init_begin. While we ensure that __init_begin is page-aligned, we do not provide the same guarantee for _etext. This is not problematic currently as the alignment of __init_begin is sufficient to prevent issues when we modify permissions. Subsequent patches will assume page alignment of segments of the kernel we wish to map with different permissions. To ensure this, move _etext after the ALIGN_DEBUG_RO_MIN for the init section. This renders the prior ALIGN_DEBUG_RO irrelevant, and hence it is removed. Likewise, upgrade to ALIGN_DEBUG_RO_MIN(PAGE_SIZE) for _stext. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Jeremy Linton <jeremy.linton@arm.com> Cc: Laura Abbott <labbott@fedoraproject.org> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm/mmu.c')
0 files changed, 0 insertions, 0 deletions