From: Alan Cox Date: Tue, 2 Jun 2015 23:27:25 +0000 (+0100) Subject: 6809: hopefully sort out the branches and stack save this time X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=68cfe4f160cf896adde979536b062b186a4bfa57;p=FUZIX.git 6809: hopefully sort out the branches and stack save this time --- diff --git a/Kernel/lowlevel-6809.s b/Kernel/lowlevel-6809.s index f282c4f8..963bd5cc 100644 --- a/Kernel/lowlevel-6809.s +++ b/Kernel/lowlevel-6809.s @@ -288,9 +288,9 @@ in_kernel: clr _inint ldx istack_switched_sp ; stack back - lda U_DATA__U_INSYS clr U_DATA__U_ININTERRUPT - bne interrupt_return + lda U_DATA__U_INSYS + bne interrupt_return_x lda _need_resched beq no_switch @@ -337,6 +337,9 @@ intdone: interrupt_return: SAM_RESTORE ; uses the saved Y rti +interrupt_return_x: + tfr x,s + bra interrupt_return ; Enter with X being the signal to send ourself trap_signal: