[PATCH] ARM: map ATAGs when not in first 1MB of RAM

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Jan 27 11:31:49 EST 2011


On Thu, Jan 27, 2011 at 09:50:43AM -0600, Rob Herring wrote:
> +	/*
> +	 * Otherwise map the 1MB region r2 points to (atags or dtb)
> +	 */
> +1:	mov	r0, r2, lsr #20
> +	mov	r0, r0, lsl #20
> +	sub	r3, r0, #(PHYS_OFFSET & 0xff000000)
> +	.if	(PHYS_OFFSET & 0x00f00000)
> +	sub	r3, r3, #(PHYS_OFFSET & 0x00f00000)

This introduces new PHYS_OFFSET uses which we're trying hard to get
rid of.  This will need to be reworked.



More information about the linux-arm-kernel mailing list