]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit949c81d54782ec969f16d041c8ae6c9e8b5faea3
treee41fabcdd9176181f10a0732d290f081f62dcd6d
parent9dc6635b84bbbce8300cb116ae4eb759b1789841
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