diff options
Diffstat (limited to 'arch/microblaze/kernel/hw_exception_handler.S')
-rw-r--r-- | arch/microblaze/kernel/hw_exception_handler.S | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/hw_exception_handler.S b/arch/microblaze/kernel/hw_exception_handler.S index 3288c9737671..0ad0f7011a1a 100644 --- a/arch/microblaze/kernel/hw_exception_handler.S +++ b/arch/microblaze/kernel/hw_exception_handler.S | |||
@@ -84,9 +84,10 @@ | |||
84 | #define NUM_TO_REG(num) r ## num | 84 | #define NUM_TO_REG(num) r ## num |
85 | 85 | ||
86 | #ifdef CONFIG_MMU | 86 | #ifdef CONFIG_MMU |
87 | /* FIXME you can't change first load of MSR because there is | ||
88 | * hardcoded jump bri 4 */ | ||
89 | #define RESTORE_STATE \ | 87 | #define RESTORE_STATE \ |
88 | lwi r5, r1, 0; \ | ||
89 | mts rmsr, r5; \ | ||
90 | nop; \ | ||
90 | lwi r3, r1, PT_R3; \ | 91 | lwi r3, r1, PT_R3; \ |
91 | lwi r4, r1, PT_R4; \ | 92 | lwi r4, r1, PT_R4; \ |
92 | lwi r5, r1, PT_R5; \ | 93 | lwi r5, r1, PT_R5; \ |
@@ -309,6 +310,9 @@ _hw_exception_handler: | |||
309 | lwi r31, r0, TOPHYS(PER_CPU(CURRENT_SAVE)) /* get saved current */ | 310 | lwi r31, r0, TOPHYS(PER_CPU(CURRENT_SAVE)) /* get saved current */ |
310 | #endif | 311 | #endif |
311 | 312 | ||
313 | mfs r5, rmsr; | ||
314 | nop | ||
315 | swi r5, r1, 0; | ||
312 | mfs r3, resr | 316 | mfs r3, resr |
313 | nop | 317 | nop |
314 | mfs r4, rear; | 318 | mfs r4, rear; |