xen/arm32: head: Always zero r3 before update a page-table entry
authorJulien Grall <julien.grall@arm.com>
Mon, 15 Apr 2019 14:37:12 +0000 (15:37 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 6 Jun 2019 17:44:33 +0000 (18:44 +0100)
commit70f748021087b0cec613dbd9d06b127e3b0e60dc
treeed92d44f7d759c0ad6f3e18baf175d2f35b99272
parent16af78ade112a275c03bfa8c2d9369baadf71d42
xen/arm32: head: Always zero r3 before update a page-table entry

The boot code is using r2 and r3 to hold the page-table entry value.
While r2 is always updated before storing the value, this is not always
the case for r3.

Thankfully today, r3 will always be zero when we care. But this is
difficult to track and error-prone.

So always zero r3 within the few instructions before the write the
page-table entry.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii.anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm32/head.S