Commit 131e4e97 authored by Michal Simek's avatar Michal Simek

microblaze: Clear sticky FSR register after saving it to func parametr

Previous patch d63678d607d0e37ec7abe5ceb545d7e8aab956a4 clear
it for noMMU kernel. This one do it for MMU.

Correct noMMU version
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent f1ae3f69
...@@ -592,6 +592,8 @@ C_ENTRY(full_exception_trap): ...@@ -592,6 +592,8 @@ C_ENTRY(full_exception_trap):
nop nop
mfs r7, rfsr; /* save FSR */ mfs r7, rfsr; /* save FSR */
nop nop
mts rfsr, r0; /* Clear sticky fsr */
nop
la r12, r0, full_exception la r12, r0, full_exception
set_vms; set_vms;
rtbd r12, 0; rtbd r12, 0;
......
...@@ -384,7 +384,7 @@ handle_other_ex: /* Handle Other exceptions here */ ...@@ -384,7 +384,7 @@ handle_other_ex: /* Handle Other exceptions here */
addk r8, r17, r0; /* Load exception address */ addk r8, r17, r0; /* Load exception address */
bralid r15, full_exception; /* Branch to the handler */ bralid r15, full_exception; /* Branch to the handler */
nop; nop;
mts r0, rfsr; /* Clear sticky fsr */ mts rfsr, r0; /* Clear sticky fsr */
nop nop
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment