Enabling PSTATE.D at IRQ entry results into nested debug exceptions.
This is incorrect as the context restored on IRQ exit invalidates
any changes to the context made by the debug exception's handler.
Also remove the unmasking of PSTATE.F as at the present we don't
deal with FIQs.
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1481
.align 6
el1_irq:
SAVE_REGS 1
- msr daifclr, #(8 | 4 | 1)
+ msr daifclr, #4 /* Unmask SError */
mov x0, sp
bl trap_el1_irq
RESTORE_REGS