dragon-nx-32: fix stupid bug in optimised idle
authorAlan Cox <alan@linux.intel.com>
Tue, 21 Jul 2015 20:14:00 +0000 (21:14 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 21 Jul 2015 20:14:00 +0000 (21:14 +0100)
Kernel/platform-dragon-nx32/tricks.s

index 6264488..801407f 100644 (file)
@@ -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