From 3f2478472fbd10cf11ded0438b854ec267082464 Mon Sep 17 00:00:00 2001 From: Kinjal Pravinbhai Patel Date: Wed, 10 Jun 2015 17:27:23 +0530 Subject: [PATCH] bsp: a53: enabling the SError exception in boot code This patch enables Serror exception in boot flow for catching the asynchronous aborts Signed-off-by: Kinjal Pravinbhai Patel --- lib/bsp/standalone/src/cortexa53/64bit/gcc/boot.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/bsp/standalone/src/cortexa53/64bit/gcc/boot.S b/lib/bsp/standalone/src/cortexa53/64bit/gcc/boot.S index 807f80c3..c7b966c3 100644 --- a/lib/bsp/standalone/src/cortexa53/64bit/gcc/boot.S +++ b/lib/bsp/standalone/src/cortexa53/64bit/gcc/boot.S @@ -198,6 +198,11 @@ OKToRun: msr TCR_EL3, x1 isb + /* Enable SError Exception for asynchronous abort */ + mrs x1,DAIF + bic x1,x1,#(0x1<<8) + msr DAIF,x1 + /* Configure SCTLR_EL3 */ mov x1, #0 //Most of the SCTLR_EL3 bits are unknown at reset orr x1, x1, #(1 << 12) //Enable I cache