lowlevel-6809.s flag test fixup
authorTormod Volden <debian.tormod@gmail.com>
Tue, 2 Jun 2015 22:10:59 +0000 (00:10 +0200)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Jun 2015 22:58:25 +0000 (23:58 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/lowlevel-6809.s

index f282c4f..7d3ddc0 100644 (file)
@@ -289,8 +289,10 @@ in_kernel:
             clr _inint
             ldx istack_switched_sp     ; stack back
             lda U_DATA__U_INSYS
+            beq inusr
             clr U_DATA__U_ININTERRUPT
-            bne interrupt_return
+            bra interrupt_return
+inusr:
            lda _need_resched
            beq no_switch