diff options
author | Michal Simek <monstr@monstr.eu> | 2009-09-28 02:50:53 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-10-05 05:37:47 -0400 |
commit | 131e4e97bfee809dc64febe8accef2f042a92722 (patch) | |
tree | 7f52e7995483f10bf0ef0ffa4e96a49e016076a6 /arch | |
parent | f1ae3f6918ee4a437b4166a4deab4bd79629bc09 (diff) |
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: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/microblaze/kernel/hw_exception_handler.S | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S index acc1f05d1e2c..e3ecb36dd554 100644 --- a/arch/microblaze/kernel/entry.S +++ b/arch/microblaze/kernel/entry.S | |||
@@ -592,6 +592,8 @@ C_ENTRY(full_exception_trap): | |||
592 | nop | 592 | nop |
593 | mfs r7, rfsr; /* save FSR */ | 593 | mfs r7, rfsr; /* save FSR */ |
594 | nop | 594 | nop |
595 | mts rfsr, r0; /* Clear sticky fsr */ | ||
596 | nop | ||
595 | la r12, r0, full_exception | 597 | la r12, r0, full_exception |
596 | set_vms; | 598 | set_vms; |
597 | rtbd r12, 0; | 599 | rtbd r12, 0; |
diff --git a/arch/microblaze/kernel/hw_exception_handler.S b/arch/microblaze/kernel/hw_exception_handler.S index 6b0288ebccd6..2b86c03aa841 100644 --- a/arch/microblaze/kernel/hw_exception_handler.S +++ b/arch/microblaze/kernel/hw_exception_handler.S | |||
@@ -384,7 +384,7 @@ handle_other_ex: /* Handle Other exceptions here */ | |||
384 | addk r8, r17, r0; /* Load exception address */ | 384 | addk r8, r17, r0; /* Load exception address */ |
385 | bralid r15, full_exception; /* Branch to the handler */ | 385 | bralid r15, full_exception; /* Branch to the handler */ |
386 | nop; | 386 | nop; |
387 | mts r0, rfsr; /* Clear sticky fsr */ | 387 | mts rfsr, r0; /* Clear sticky fsr */ |
388 | nop | 388 | nop |
389 | 389 | ||
390 | /* | 390 | /* |