[PATCH v3 4/7] ARM: KVM: enforce maximum size for identity mapped code
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Apr 19 09:34:03 EDT 2013
On Fri, Apr 12, 2013 at 04:18:49PM +0100, Marc Zyngier wrote:
> We're about to move to an init procedure where we rely on the
> fact that the init code fits in a single page. Make sure we
> align the idmap text on a vector alignment, and that the code is
> not bigger than a single page.
>
> Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
> ---
> arch/arm/kernel/vmlinux.lds.S | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
> index b571484..a871b8e 100644
> --- a/arch/arm/kernel/vmlinux.lds.S
> +++ b/arch/arm/kernel/vmlinux.lds.S
> @@ -20,7 +20,7 @@
> VMLINUX_SYMBOL(__idmap_text_start) = .; \
> *(.idmap.text) \
> VMLINUX_SYMBOL(__idmap_text_end) = .; \
> - ALIGN_FUNCTION(); \
> + . = ALIGN(32); \
It would be a good idea to document what this 32 is.
More information about the linux-arm-kernel
mailing list