xen: arm: Write to the correct PT when mapping the DTB on boot on arm64
authorIan Campbell <ian.campbell@citrix.com>
Fri, 25 Jul 2014 09:32:06 +0000 (10:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 4 Aug 2014 13:00:45 +0000 (14:00 +0100)
commit159e504e77bdf683779b898b881584f34aedb46a
tree4226ed005f90ee33f8117171c4cbd12282b7a409
parent47087e8d067b0f7f72128d02e37bbf1dcfc8b843
xen: arm: Write to the correct PT when mapping the DTB on boot on arm64

We currently get away with this because when debug=y and earlyprintk is enabled
the previous block of (conditional) code would have set this up. Historically we
mostly got away with it even without those options because the pre paging code
would normally (at least on h/w we test) leave x4 set to the paddr of
boot_second.

This latent bug has always been present but was exposed by ca59618967fe "xen:
arm: Handle 4K aligned hypervisor load address" (or one of the related patches)
since now x4 is quite likely to point to boot_third not boot_second.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/arm64/head.S