[PATCH v3 4/7] ARM: KVM: enforce maximum size for identity mapped code
Marc Zyngier
marc.zyngier at arm.com
Fri Apr 19 10:07:40 EDT 2013
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 <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.
Good point. I'll update this.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
More information about the linux-arm-kernel
mailing list