ARM: Unmask aborts very early in the bootblock.

It's better to recognize aborts when they occur than to mask them to
discover them later without knowing where they actually came from.

Change-Id: Ic8f5321415f411afac94b5ef9dd440790df6d82c
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3065
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Gabe Black 2013-04-10 14:32:56 -07:00
parent 8d80a3fb9f
commit 514f202939
1 changed files with 4 additions and 1 deletions

View File

@ -53,11 +53,14 @@ _cbfs_master_header:
reset: reset:
/* /*
* set the cpu to SVC32 mode * Set the cpu to SVC32 mode and unmask aborts. Aborts might happen
* before logging is turned on and may crash the machine, but at least
* the problem will show up near the code that causes it.
*/ */
mrs r0, cpsr mrs r0, cpsr
bic r0, r0, #0x1f bic r0, r0, #0x1f
orr r0, r0, #0xd3 orr r0, r0, #0xd3
bic r0, r0, #0x100
msr cpsr_cxsf,r0 msr cpsr_cxsf,r0
/* /*