Skip to content

Commit 131e4e9

Browse files
committed
microblaze: Clear sticky FSR register after saving it to func parametr
Previous patch d63678d clear it for noMMU kernel. This one do it for MMU. Correct noMMU version Signed-off-by: Michal Simek <monstr@monstr.eu>
1 parent f1ae3f6 commit 131e4e9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎arch/microblaze/kernel/entry.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,8 @@ C_ENTRY(full_exception_trap):
592592
nop
593593
mfs r7, rfsr; /* save FSR */
594594
nop
595+
mts rfsr, r0; /* Clear sticky fsr */
596+
nop
595597
la r12, r0, full_exception
596598
set_vms;
597599
rtbd r12, 0;

‎arch/microblaze/kernel/hw_exception_handler.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ handle_other_ex: /* Handle Other exceptions here */
384384
addk r8, r17, r0; /* Load exception address */
385385
bralid r15, full_exception; /* Branch to the handler */
386386
nop;
387-
mts r0, rfsr; /* Clear sticky fsr */
387+
mts rfsr, r0; /* Clear sticky fsr */
388388
nop
389389

390390
/*

0 commit comments

Comments
 (0)