From 68cfe4f160cf896adde979536b062b186a4bfa57 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 3 Jun 2015 00:27:25 +0100 Subject: [PATCH] 6809: hopefully sort out the branches and stack save this time --- Kernel/lowlevel-6809.s | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: -- 2.34.1