diff --git a/include/cm_macros.S b/include/cm_macros.S index 9eeec1899889cfaafe3c59d8ca30409e607d68c1..6901f7667413e6dc672c4f78b2e15c3dc85b969a 100644 --- a/include/cm_macros.S +++ b/include/cm_macros.S @@ -59,6 +59,12 @@ * ----------------------------------------------------- */ .macro handle_sync_exception + /* --------------------------------------------- + * Enable Debug and SError interrupts + * --------------------------------------------- + */ + msr daifclr, #(DAIF_ABT_BIT | DAIF_DBG_BIT) + stp x30, xzr, [sp, #CTX_GPREGS_OFFSET + CTX_GPREG_LR] mrs x30, esr_el3 ubfx x30, x30, #ESR_EC_SHIFT, #ESR_EC_LENGTH diff --git a/services/psci/psci_entry.S b/services/psci/psci_entry.S index 361dfde4535564695ff8e41de046d08f4eeb99ef..32d5c5123689162700dc317e498ee748bdf085e6 100644 --- a/services/psci/psci_entry.S +++ b/services/psci/psci_entry.S @@ -75,6 +75,12 @@ psci_aff_common_finish_entry: msr vbar_el3, x0 isb + /* --------------------------------------------- + * Enable Debug and SError interrupts + * --------------------------------------------- + */ + msr daifclr, #(DAIF_ABT_BIT | DAIF_DBG_BIT) + /* --------------------------------------------- * Use SP_EL0 for the C runtime stack. * ---------------------------------------------