microblaze: Clear sticky FSR register after generating exception signals
authorJohn Williams <john.williams@petalogix.com>
Tue, 15 Sep 2009 02:29:55 +0000 (12:29 +1000)
committerMichal Simek <monstr@monstr.eu>
Tue, 22 Sep 2009 08:00:42 +0000 (10:00 +0200)
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>
arch/microblaze/kernel/hw_exception_handler.S

index 0ad0f70..6b0288e 100644 (file)
@@ -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