From b2279ba034eee3fee348a0b09bbdbaf339628b05 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 21 Jul 2015 21:14:00 +0100 Subject: [PATCH] dragon-nx-32: fix stupid bug in optimised idle --- Kernel/platform-dragon-nx32/tricks.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1