From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Fri, 19 Apr 2013 15:07:40 +0100 Subject: [PATCH v3 4/7] ARM: KVM: enforce maximum size for identity mapped code In-Reply-To: <20130419133403.GP14496@n2100.arm.linux.org.uk> References: <1365779932-20322-1-git-send-email-marc.zyngier@arm.com> <1365779932-20322-5-git-send-email-marc.zyngier@arm.com> <20130419133403.GP14496@n2100.arm.linux.org.uk> Message-ID: <51714FAC.1010708@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 19/04/13 14:34, Russell King - ARM Linux wrote: > 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 >> --- >> 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. Good point. I'll update this. Thanks, M. -- Jazz is not dead. It just smells funny...