xen/arm32: entry: Split __DEFINE_ENTRY_TRAP in two
authorJulien Grall <julien.grall@arm.com>
Tue, 1 Oct 2019 12:07:53 +0000 (13:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 31 Oct 2019 15:20:58 +0000 (16:20 +0100)
commit6eeef7ecaeec002bb1da7e20c9cfaec5549bd940
tree03b894266b4f51a6d4a9bfe3833c8478cea2715d
parent319f9a0ba94c7db505cd5dd9cb0b037ab1aa8e12
xen/arm32: entry: Split __DEFINE_ENTRY_TRAP in two

The preprocessing macro __DEFINE_ENTRY_TRAP is used to generate trap
entry function. While the macro is fairly small today, follow-up patches
will increase the size signicantly.

In general, assembly macros are more readable as they allow you to name
parameters and avoid '\'. So the actual implementation of the trap is
now switched to an assembly macro.

This is part of XSA-303.

Reported-by: Julien Grall <Julien.Grall@arm.com>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
xen/arch/arm/arm32/entry.S