arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset
authorJoey Gouly <joey.gouly@arm.com>
Tue, 2 Feb 2021 12:36:57 +0000 (12:36 +0000)
committerWill Deacon <will@kernel.org>
Wed, 3 Feb 2021 20:43:45 +0000 (20:43 +0000)
commit00ef543419366e8b742435992d08e0d5a87fd561
treee41fabcdd9176181f10a0732d290f081f62dcd6d
parentb9ba680969d1016888fed4e03d8ecb4b97726f34
arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset

Add RESERVED_SWAPPER_OFFSET and use that instead of hardcoding
the offset between swapper_pg_dir and reserved_pg_dir.

Then use RESERVED_SWAPPER_OFFSET to assert that the offset is
correct at link time.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20210202123658.22308-2-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/asm-uaccess.h
arch/arm64/include/asm/memory.h
arch/arm64/include/asm/uaccess.h
arch/arm64/kernel/vmlinux.lds.S