xen/arm: Remove the variable dom0_11_mapping and open-code the value
authorJulien Grall <julien.grall@arm.com>
Mon, 2 Jul 2018 16:19:04 +0000 (17:19 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 11 Jul 2018 19:17:41 +0000 (12:17 -0700)
commit54a41ef089004b7c5d7a963825f39f4dc90b1f31
tree75b84d5ed22d795944594d7a93c7a8bb19a7133e
parentf3d275cb5eae88295b14fce6b022290e939f6a28
xen/arm: Remove the variable dom0_11_mapping and open-code the value

Dom0 (aka hardware domain on Arm) is always direct mapped. Rather than
using a global variable to store a const, directly open-code it or
replace the use with is_domain_direct_mapped(...) macros.

This will also help a follow-up patch to move all domain_build.c in
init.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c
xen/include/asm-arm/domain.h