xen/arm32: head: Setup HTTBR in enable_mmu() and add missing isb
authorJulien Grall <julien.grall@arm.com>
Sat, 20 Apr 2019 13:36:50 +0000 (14:36 +0100)
committerJulien Grall <julien.grall@arm.com>
Tue, 17 Sep 2019 16:45:38 +0000 (17:45 +0100)
commitaaee787a8b99f40c9a74cab120707f8d9dd80ad8
tree0de71b67c9722c72aa50e0a4131fd1a492ce9a81
parent54c4ae18d158185891a646166388dc3ce7e8dc69
xen/arm32: head: Setup HTTBR in enable_mmu() and add missing isb

At the moment, HTTBR is setup in create_page_tables(). This is fine as
it is called by every CPUs.

However, such assumption may not hold in the future. To make change
easier, the HTTBR is not setup in enable_mmu().

Take the opportunity to add the missing isb() to ensure the HTTBR is
seen before the MMU is turned on.

Lastly, the only use of r5 in create_page_tables() is now removed. So
the register can be removed from the clobber list of the function.

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