]> xenbits.xensource.com Git - people/dwmw2/xen.git/commit
xen/arm32: entry: Fold the macro SAVE_ALL in the macro vector
authorJulien Grall <julien.grall@arm.com>
Tue, 1 Oct 2019 12:15:48 +0000 (13:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 31 Oct 2019 15:21:33 +0000 (16:21 +0100)
commita7b81b021ead23bffb5affcac05edfc0a84d129d
treeccc01a67491477d8288eb36d766f5640a2fc79aa
parent6eeef7ecaeec002bb1da7e20c9cfaec5549bd940
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>
xen/arch/arm/arm32/entry.S