65c816: signal vector copy
authorAlan Cox <alan@linux.intel.com>
Mon, 4 Dec 2017 02:14:25 +0000 (02:14 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 4 Dec 2017 02:14:25 +0000 (02:14 +0000)
Kernel/lowlevel-65c816.s

index 29478c3..605a674 100644 (file)
@@ -376,7 +376,10 @@ _doexec:
        .i16
        .a16
 
+       ; ptr1 might be PROGBASE but that's fine !!
        ldx     ptr1            ;       target address
+       lda     a:$20,x         ;       fetch the signal vector pointer
+       sta     PROGBASE+$20    ;       and stuff it in the base
 
        sep     #$20
        .a8