]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: Introduce MAX_USER_VA_BITS definition
authorWill Deacon <will.deacon@arm.com>
Wed, 12 Dec 2018 11:51:40 +0000 (11:51 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 12 Dec 2018 11:51:40 +0000 (11:51 +0000)
commit3e6862952ba0b01b5c7b96590704e1ff3ba29906
tree424c97293f7f941af7e3aa207dda3f9e08de0091
parent355fb950c55dddf55597910c237f080ff626d288
arm64: mm: Introduce MAX_USER_VA_BITS definition

With the introduction of 52-bit virtual addressing for userspace, we are
now in a position where the virtual addressing capability of userspace
may exceed that of the kernel. Consequently, the VA_BITS definition
cannot be used blindly, since it reflects only the size of kernel
virtual addresses.

This patch introduces MAX_USER_VA_BITS which is either VA_BITS or 52
depending on whether 52-bit virtual addressing has been configured at
build time, removing a few places where the 52 is open-coded based on
explicit CONFIG_ guards.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/memory.h
arch/arm64/include/asm/pgtable-hwdef.h
arch/arm64/include/asm/processor.h