Skip to content
Snippets Groups Projects
Commit 25fb4eaa authored by Stefan Roese's avatar Stefan Roese
Browse files

ppc4xx: Clear all potentially pending exceptions in MCSR


This is needed on Canyonlands which still has an exception pending
while running relocate_code(). This leads to a failure after trap_init()
is moved to the top of board_init_r().

Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 9b827cf1
No related branches found
No related tags found
No related merge requests found
......@@ -1440,6 +1440,10 @@ relocate_code:
dccci 0,0 /* Invalidate data cache, now no longer our stack */
sync
isync
/* Clear all potential pending exceptions */
mfspr r1,mcsr
mtspr mcsr,r1
#ifdef CONFIG_SYS_TLB_FOR_BOOT_FLASH
addi r1,r0,CONFIG_SYS_TLB_FOR_BOOT_FLASH /* Use defined TLB */
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment