v65c816: ensure the failing trap handler sets a8/i8
authorAlan Cox <alan@linux.intel.com>
Thu, 23 Nov 2017 02:27:01 +0000 (02:27 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 23 Nov 2017 02:27:01 +0000 (02:27 +0000)
Kernel/platform-v65c816/v65.s

index b800525..2d415d3 100644 (file)
@@ -46,6 +46,9 @@ _trap_monitor:
        jmp     _trap_monitor
 
 _trap_reboot:
+       sep     #$30
+       .a8
+       .i8
        lda     #$A5
        sta     $FE40           ; Off
        jmp     _trap_reboot    ; FIXME: original ROM map and jmp