diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-03-02 09:47:13 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-03-02 10:45:52 +0100 |
commit | 6d2aa549de1fc998581d216de3853aa131aa4446 (patch) | |
tree | 76ecfc517079dfe3118bc96e0f523252a5618a82 /arch/arm64/kernel/alternative.c | |
parent | arm64: KVM: Move kvm_call_hyp back to its original localtion (diff) | |
download | linux-6d2aa549de1fc998581d216de3853aa131aa4446.tar.xz linux-6d2aa549de1fc998581d216de3853aa131aa4446.zip |
arm64: mm: check at build time that PAGE_OFFSET divides the VA space evenly
Commit 8439e62a1561 ("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>
Diffstat (limited to 'arch/arm64/kernel/alternative.c')
0 files changed, 0 insertions, 0 deletions