]> xenbits.xensource.com Git - xen.git/commit
xen/arm: Rename SCTLR_* defines and remove unused one
authorJulien Grall <julien.grall@arm.com>
Tue, 14 May 2019 12:24:39 +0000 (13:24 +0100)
committerJulien Grall <julien.grall@arm.com>
Tue, 21 May 2019 10:59:29 +0000 (11:59 +0100)
commit40d82802137385e841ab16b627f889f247c9cba2
treecf71beaa1555e9cfba37563e128c097940144569
parenta4d85a9287475738f400e4cd87750a37298c3948
xen/arm: Rename SCTLR_* defines and remove unused one

The SCTLR_* are currently used for SCTLR/HSCTLR (arm32) and
SCTLR_EL1/SCTLR_EL2 (arm64).

The naming scheme is actually quite confusing because they may only be
defined for an archicture (or even an exception level). So it is not easy
for the developer to know which one to use.

The naming scheme is reworked by adding Axx_ELx in each define:
    * xx is replaced by 32 or 64 if specific to an architecture
    * x is replaced by 2 (hypervisor) or 1 (kernel) if specific to an
    exception level

While doing the renaming, remove the unused defines (or at least the ones
that are unlikely going to be used).

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
xen/arch/arm/arm64/head.S
xen/arch/arm/guest_walk.c
xen/arch/arm/mm.c
xen/arch/arm/traps.c
xen/include/asm-arm/p2m.h
xen/include/asm-arm/processor.h