xen/arm32: entry: Fold the macro SAVE_ALL in the macro vector
authorJulien Grall <julien.grall@arm.com>
Thu, 31 Oct 2019 16:15:41 +0000 (17:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 31 Oct 2019 16:15:41 +0000 (17:15 +0100)
commit3697e2ac3f0bdecef689de00bd17d74e9dc62a7b
tree540c15c2513b529f838da11465168d62daa4626d
parentc0f9d1e59da2162f1c5f82acdbc0adc16975ba06
xen/arm32: entry: Fold the macro SAVE_ALL in the macro vector

Follow-up rework will require the macro vector to distinguish between
a trap from a guest vs while in the hypervisor.

The macro SAVE_ALL already has code to distinguish between the two and
it is only called by the vector macro. So fold the former into the
latter. This will help to avoid duplicating the check.

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: a7b81b021ead23bffb5affcac05edfc0a84d129d
master date: 2019-10-31 16:21:33 +0100
xen/arch/arm/arm32/entry.S