From: Alan Cox Date: Mon, 1 Jun 2015 20:09:55 +0000 (+0100) Subject: dragon: update to need_resched X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=48e454494062665ea9ecc2bb00a132516e7fd275;p=FUZIX.git dragon: update to need_resched --- diff --git a/Kernel/platform-dragon/tricks.s b/Kernel/platform-dragon/tricks.s index 7dd86f56..c68e5448 100644 --- a/Kernel/platform-dragon/tricks.s +++ b/Kernel/platform-dragon/tricks.s @@ -48,10 +48,6 @@ _switchout: pshs d sts U_DATA__U_SP - ; set inint to false - lda #0 - sta _inint - ; find another process to run (may select this one again) returns it ; in X jsr _getproc @@ -84,8 +80,8 @@ _switchin: puls x ; return code ; enable interrupts, if the ISR isn't already running - lda _inint - beq swtchdone ; in ISR, leave interrupts off + lda U_DATA__U_ININTERRUPT + bne swtchdone ; in ISR, leave interrupts off andcc #0xef swtchdone: rts