xen/arm: Limit the scope of cpregs.h
authorJulien Grall <julien.grall@arm.com>
Thu, 14 Sep 2017 17:08:59 +0000 (18:08 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 14 Sep 2017 22:15:08 +0000 (15:15 -0700)
commitfc3986d9632f24ad4d40cffd4cad25298e406122
treef4307df4e8ea030e2f6fa56603fe5ba8930b2aa8
parent7735872c99d805dac581dda9af6b7cff9b1cb1eb
xen/arm: Limit the scope of cpregs.h

Currently, cpregs.h is indirectly included every files of the hypervisor even
for arm64. However, the only use for arm64 is when emulating co-processors.

For arm32, all users of processor.h expect cpregs.h to be included in
order to access co-processors. So move the inclusion in
asm-arm/arm32/processor.h.

cpregs.h will also be directly included in the co-processors emulation
to accommodate arm64.

This is drastically reducing the exposure of cpregs.h to any source file
on arm64.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/smp.c
xen/arch/arm/vcpreg.c
xen/arch/arm/vgic-v3.c
xen/arch/arm/vtimer.c
xen/include/asm-arm/arm32/processor.h
xen/include/asm-arm/percpu.h
xen/include/asm-arm/processor.h