From: Tormod Volden <debian.tormod@gmail.com>
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Jun 2015 22:00:45 +0000 (23:00 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Jun 2015 22:01:23 +0000 (23:01 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/lowlevel-6809.s

index 2bb31e3..f282c4f 100644 (file)
@@ -292,9 +292,9 @@ in_kernel:
             clr U_DATA__U_ININTERRUPT
             bne interrupt_return
            lda _need_resched
-           clr _need_resched
            beq no_switch
 
+           clr _need_resched
            stx U_DATA__U_SYSCALL_SP    ; save again somewhere safe for
                                        ; preemption
            ; Pre emption occurs on the task stack. Conceptually its a