arm64: move SEGMENT_ALIGN to <asm/memory.h>
authorMark Rutland <mark.rutland@arm.com>
Fri, 14 Jul 2017 14:38:43 +0000 (15:38 +0100)
committerMark Rutland <mark.rutland@arm.com>
Tue, 15 Aug 2017 17:35:22 +0000 (18:35 +0100)
commit8018ba4edfd3a8b46f876c65988bd0d8e35c32a6
tree00344d841c65f48cbe7ec4925e0a2e3b3d1841f3
parentf60ad4edcf07238a3d2646d65d8d217032452550
arm64: move SEGMENT_ALIGN to <asm/memory.h>

Currently we define SEGMENT_ALIGN directly in our vmlinux.lds.S.

This is unfortunate, as the EFI stub currently open-codes the same
number, and in future we'll want to fiddle with this.

This patch moves the definition to our <asm/memory.h>, where it can be
used by both vmlinux.lds.S and the EFI stub code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: James Morse <james.morse@arm.com>
arch/arm64/include/asm/memory.h
arch/arm64/kernel/vmlinux.lds.S