[RFC PATCH 3/3] ARM: mm: add l2x0 suspend/resume support

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Sep 26 10:55:03 EDT 2011


On Mon, Sep 26, 2011 at 03:32:41PM +0100, Lorenzo Pieralisi wrote:
> +	__FINIT
> +/*
> + * Function entered with flags set by jump table in l2x0_resume
> + * If zero flag is set this is a pl310
> + * r0 = l2x0_data
> + * r1 = L2 address
> + */
> +resume_l210:
...
> +	.data
> +	.align
> +ENTRY(l2x0_resume)
...
> +	b 	resume_l210
> +ENDPROC(l2x0_restore_context)

This is not a good idea - jumping from the data segment into the text
segment.  We place initrds and initramfs images between the text and
data segments which can push the branch relocation out of range.



More information about the linux-arm-kernel mailing list