]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: check at build time that PAGE_OFFSET divides the VA space evenly
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 2 Mar 2016 08:47:13 +0000 (09:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 2 Mar 2016 09:45:52 +0000 (09:45 +0000)
commit0106c0362ae238add91a77f138aaa35d4753bbd9
tree76ecfc517079dfe3118bc96e0f523252a5618a82
parent66c117781642feea3d04418f0ba2ad816f46cacf
arm64: mm: check at build time that PAGE_OFFSET divides the VA space evenly

Commit f5c87852972c ("arm64: mm: use bit ops rather than arithmetic in
pa/va translations") changed the boundary check against PAGE_OFFSET from
an arithmetic comparison to a bit test. This means we now silently assume
that PAGE_OFFSET is a power of 2 that divides the kernel virtual address
space into two equal halves. So make that assumption explicit.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/init.c