Skip to content

Commit e8d809c

Browse files
committed
Merge branch 'fixes-for-linus' of git://git.monstr.eu/linux-2.6-microblaze
* 'fixes-for-linus' of git://git.monstr.eu/linux-2.6-microblaze: microblaze: Clear sticky FSR register after saving it to func parametr microblaze: UMS is used only for MMU kernel
2 parents ef790fe + 131e4e9 commit e8d809c

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎arch/microblaze/kernel/entry.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,8 @@ C_ENTRY(full_exception_trap):
592592
nop
593593
mfs r7, rfsr; /* save FSR */
594594
nop
595+
mts rfsr, r0; /* Clear sticky fsr */
596+
nop
595597
la r12, r0, full_exception
596598
set_vms;
597599
rtbd r12, 0;

‎arch/microblaze/kernel/hw_exception_handler.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ handle_other_ex: /* Handle Other exceptions here */
384384
addk r8, r17, r0; /* Load exception address */
385385
bralid r15, full_exception; /* Branch to the handler */
386386
nop;
387-
mts r0, rfsr; /* Clear sticky fsr */
387+
mts rfsr, r0; /* Clear sticky fsr */
388388
nop
389389

390390
/*

‎arch/microblaze/kernel/process.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp)
235235
regs->pc = pc;
236236
regs->r1 = usp;
237237
regs->pt_mode = 0;
238+
#ifdef CONFIG_MMU
238239
regs->msr |= MSR_UMS;
240+
#endif
239241
}
240242

241243
#ifdef CONFIG_MMU

0 commit comments

Comments
 (0)