Skip to content

Commit d63678d

Browse files
petalogixmichalsimek
authored andcommitted
microblaze: Clear sticky FSR register after generating exception signals
FSR is sticky, so after the userspace exception/signal generation, clear it ready for next time. Signed-off-by: John Williams <john.williams@petalogix.com>
1 parent 97c853e commit d63678d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/microblaze/kernel/hw_exception_handler.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ handle_other_ex: /* Handle Other exceptions here */
380380
addk r8, r17, r0; /* Load exception address */
381381
bralid r15, full_exception; /* Branch to the handler */
382382
nop;
383+
mts r0, rfsr; /* Clear sticky fsr */
384+
nop
383385

384386
/*
385387
* Trigger execution of the signal handler by enabling

0 commit comments

Comments
 (0)