]> xenbits.xensource.com Git - xen.git/commit
xen/arm32: entry: Consolidate DEFINE_TRAP_ENTRY*() macros
authorJulien Grall <julien.grall@arm.com>
Tue, 1 Oct 2019 12:07:53 +0000 (13:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Nov 2019 14:20:29 +0000 (15:20 +0100)
commitd02aeba1b36fadd3757d2d6f2bb2ba3b0b7634f0
tree2cda57135ce95269d778d8a947556412e4b34e78
parent960670ae79d142e52c3a5fc7d44b2fcbabd67dd3
xen/arm32: entry: Consolidate DEFINE_TRAP_ENTRY*() macros

The only difference between the two macros DEFINE_TRAP_ENTRY() and
DEFINE_TRAP_ENTRY_NOIRQ() is the list of interrupts to be unmasked.

While the macros are fairly small today, it will be necessary to add the
same code twice in follow-up patches.

To prevent too much duplication, a new assembly macros is introduced to
generate the body of a trap.

This is part of XSA-303.

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