xen/arm: mm: Consolidate setting SCTLR_EL2.WXN in a single place
authorJulien Grall <julien.grall@arm.com>
Tue, 14 May 2019 12:11:26 +0000 (13:11 +0100)
committerJulien Grall <julien.grall@arm.com>
Tue, 21 May 2019 10:59:29 +0000 (11:59 +0100)
commit505f1f0b19a1be0e2623aa6028db87b57e283f5a
tree4305905d4483cbd3736694546feefcb3d8c3b3ca
parent03957f58db8942d61f4889b6924e39d3b27a9e43
xen/arm: mm: Consolidate setting SCTLR_EL2.WXN in a single place

The logic to set SCTLR_EL2.WXN is the same for the boot CPU and
non-boot CPU. So introduce a function to set the bit and clear TLBs.

This new function will help us to document and update the logic in a
single place.

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/mm.c