--- zzzz-none-000/linux-3.10.107/arch/mn10300/kernel/entry.S 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mn10300/kernel/entry.S 2021-02-04 17:41:59.000000000 +0000 @@ -171,10 +171,10 @@ mov (REG_EPSW,fp),d0 # need to deliver signals before # returning to userspace and EPSW_nSL,d0 - beq resume_kernel # returning to supervisor mode + bne resume_userspace # returning to userspace #ifdef CONFIG_PREEMPT -ENTRY(resume_kernel) +resume_kernel: LOCAL_IRQ_DISABLE mov (TI_preempt_count,a2),d0 # non-zero preempt_count ? cmp 0,d0 @@ -189,6 +189,8 @@ bne restore_all call preempt_schedule_irq[],0 jmp need_resched +#else + jmp resume_kernel #endif