]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: Remove bit-masking optimisations for PAGE_OFFSET and VMEMMAP_START
authorSteve Capper <steve.capper@arm.com>
Wed, 7 Aug 2019 15:55:13 +0000 (16:55 +0100)
committerWill Deacon <will@kernel.org>
Fri, 9 Aug 2019 10:15:46 +0000 (11:15 +0100)
commitfb68823a2c2a164024041f68d1b601c5bb6f7e49
tree542e9530ffca48ea725b668aba5c0541b8f9cb9b
parent98f2f03894443d3a44ddfe8334be57b6ae4f612b
arm64: mm: Remove bit-masking optimisations for PAGE_OFFSET and VMEMMAP_START

Currently there are assumptions about the alignment of VMEMMAP_START
and PAGE_OFFSET that won't be valid after this series is applied.

These assumptions are in the form of bitwise operators being used
instead of addition and subtraction when calculating addresses.

This patch replaces these bitwise operators with addition/subtraction.

Signed-off-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/memory.h