xen/arm32: entry: Split __DEFINE_ENTRY_TRAP in two
authorJulien Grall <julien.grall@arm.com>
Thu, 31 Oct 2019 16:15:14 +0000 (17:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 31 Oct 2019 16:15:14 +0000 (17:15 +0100)
commitc0f9d1e59da2162f1c5f82acdbc0adc16975ba06
tree2cb6496366743e60bd55210906ba036f7ac05f79
parent7cb2f1dd7383a9e23f5abb34c98b57cc5ba8f398
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>
master commit: 6eeef7ecaeec002bb1da7e20c9cfaec5549bd940
master date: 2019-10-31 16:20:58 +0100
xen/arch/arm/arm32/entry.S