[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging-4.8] Revert "xen/arm32: entry: Consolidate DEFINE_TRAP_ENTRY_* macros"
commit 960670ae79d142e52c3a5fc7d44b2fcbabd67dd3 Author: Julien Grall <julien.grall@xxxxxxx> AuthorDate: Thu Oct 17 14:25:05 2019 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Nov 4 15:20:16 2019 +0100 Revert "xen/arm32: entry: Consolidate DEFINE_TRAP_ENTRY_* macros" This reverts commit 6082e3ba8941b3d10c3cb73f445759c19e89afc9. The patch was meant to only consolidate the code but it also re-enables Abort interrupt. Follow-up patch will introduce a different way to consolidate the code. This is part of XSA-303. Reported-by: Julien Grall <Julien.Grall@xxxxxxx> Signed-off-by: Julien Grall <julien.grall@xxxxxxx> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> --- xen/arch/arm/arm32/entry.S | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/xen/arch/arm/arm32/entry.S b/xen/arch/arm/arm32/entry.S index b66705ff50..3e320dc8ac 100644 --- a/xen/arch/arm/arm32/entry.S +++ b/xen/arch/arm/arm32/entry.S @@ -116,15 +116,11 @@ abort_guest_exit_end: mov pc, lr -/* - * Macro to define trap entry. The iflags corresponds to the list of - * interrupts (Asynchronous Abort, IRQ, FIQ) to unmask. - */ -#define __DEFINE_TRAP_ENTRY(trap, iflags) \ +#define DEFINE_TRAP_ENTRY(trap) \ ALIGN; \ trap_##trap: \ SAVE_ALL; \ - cpsie iflags; \ + cpsie i; /* local_irq_enable */ \ adr lr, return_from_trap; \ mov r0, sp; \ /* \ @@ -135,11 +131,15 @@ trap_##trap: \ bic sp, #7; /* Align the stack pointer (noop on guest trap) */ \ b do_trap_##trap -/* Trap handler which unmask IRQ/Abort, keep FIQ masked */ -#define DEFINE_TRAP_ENTRY(trap) __DEFINE_TRAP_ENTRY(trap, ai) - -/* Trap handler which unmask Abort, keep IRQ/FIQ masked */ -#define DEFINE_TRAP_ENTRY_NOIRQ(trap) __DEFINE_TRAP_ENTRY(trap, a) +#define DEFINE_TRAP_ENTRY_NOIRQ(trap) \ + ALIGN; \ +trap_##trap: \ + SAVE_ALL; \ + adr lr, return_from_trap; \ + mov r0, sp; \ + mov r11, sp; \ + bic sp, #7; /* Align the stack pointer (noop on guest trap) */ \ + b do_trap_##trap .align 5 GLOBAL(hyp_traps_vector) -- generated by git-patchbot for /home/xen/git/xen.git#staging-4.8 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |