sc108: note a bug
authorAlan Cox <alan@linux.intel.com>
Sun, 9 Dec 2018 00:52:45 +0000 (00:52 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 9 Dec 2018 00:52:45 +0000 (00:52 +0000)
Kernel/platform-sc108/sc108.s

index f7ed1f2..33e65aa 100644 (file)
@@ -457,11 +457,11 @@ syscall_high:
            ld h,13(ix)
            pop ix
            di
+           ; BUG: syscall corrupts AF' - should we just define some
+           ; alt register corruptors for new API - would be sanest fix
            ex af, af'          ; Ick - find a better way to do this bit !
-           push af
            ld a,#1
            out (0x38),a
-           pop af
            ex af,af'
            ; Stack now invalid
            ld (U_DATA__U_SYSCALL_SP),sp