Skip to content

Commit

Permalink
microblaze: Clear sticky FSR register after generating exception signals
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Williams authored and Michal Simek committed Sep 22, 2009
1 parent 866d722 commit 71b23d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/microblaze/kernel/hw_exception_handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ handle_other_ex: /* Handle Other exceptions here */
addk r8, r17, r0; /* Load exception address */
bralid r15, full_exception; /* Branch to the handler */
nop;
mts r0, rfsr; /* Clear sticky fsr */
nop

/*
* Trigger execution of the signal handler by enabling
Expand Down

0 comments on commit 71b23d5

Please sign in to comment.