arm/dt: Make __vet_atags also accept a dtb image
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 28 Apr 2011 20:27:20 +0000 (14:27 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 11 May 2011 13:12:32 +0000 (15:12 +0200)
commit4c2896e88d976d0e5b2213c64cde885f5677fa2b
treed5573124e35cb3b81b7ac56fb4d7708eacf4991d
parent7ee4b98eca42c1ff1df7dcf443dac07f0a2ea93d
arm/dt: Make __vet_atags also accept a dtb image

The dtb is passed to the kernel via register r2, which is the same
method that is used to pass an atags pointer.  This patch modifies
__vet_atags to not clear r2 when it encounters a dtb image.

v2: fixed bugs pointed out by Nicolas Pitre

Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/kernel/head-common.S
arch/arm/kernel/head.S