From d0c41612d8be7ab7872da098484e48d4c78a333c Mon Sep 17 00:00:00 2001 From: Kinjal Pravinbhai Patel Date: Wed, 10 Jun 2015 17:27:24 +0530 Subject: [PATCH] bsp: r5: enabling the asynchronous abort in boot code This patch unmasks the A bit in CPSR to enable the asynchronous abort in boot.S Signed-off-by: Kinjal Pravinbhai Patel --- lib/bsp/standalone/src/cortexr5/gcc/boot.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/bsp/standalone/src/cortexr5/gcc/boot.S b/lib/bsp/standalone/src/cortexr5/gcc/boot.S index 28ef3c4d..18a2ecf1 100644 --- a/lib/bsp/standalone/src/cortexr5/gcc/boot.S +++ b/lib/bsp/standalone/src/cortexr5/gcc/boot.S @@ -196,6 +196,12 @@ OKToRun: and r0, r0, r1 mcr p15, 0, r0, c1, c0, 0 #endif + +/* enable asynchronous abort exception */ + mrs r0, cpsr + bic r0, r0, #0x100 + msr cpsr_xsf, r0 + b _startup /* jump to C startup code */