From: Alan Cox Date: Tue, 21 Jul 2015 20:14:00 +0000 (+0100) Subject: dragon-nx-32: fix stupid bug in optimised idle X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b2279ba034eee3fee348a0b09bbdbaf339628b05;p=FUZIX.git dragon-nx-32: fix stupid bug in optimised idle --- diff --git a/Kernel/platform-dragon-nx32/tricks.s b/Kernel/platform-dragon-nx32/tricks.s index 62644888..801407fd 100644 --- a/Kernel/platform-dragon-nx32/tricks.s +++ b/Kernel/platform-dragon-nx32/tricks.s @@ -73,7 +73,7 @@ idling: bne slow_path ; Was the waker us ? - ldx U_DATA + U_DATA__U_PTAB + ldx U_DATA__U_PTAB lda P_TAB__P_STATUS_OFFSET,x cmpa #P_READY ; No: follow the slow path @@ -103,7 +103,7 @@ slow_path: ldx #U_DATA ldy #U_DATA_STASH -stash ldd ,x++ +stash: ldd ,x++ std ,y++ cmpx #U_DATA+U_DATA__TOTALSIZE bne stash