[PATCH] arm64: mm: check at build time that PAGE_OFFSET divides the VA space evenly

Catalin Marinas catalin.marinas at arm.com
Wed Mar 2 01:49:09 PST 2016


On Wed, Mar 02, 2016 at 09:47:13AM +0100, Ard Biesheuvel wrote:
> 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.

Applied. Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list