zxdiv: set interrupt flags properly around swap
authorAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 00:02:04 +0000 (00:02 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 00:02:04 +0000 (00:02 +0000)
We don't turn interrupts on for swap yet as we need to tidy up other areas
like the page duplicator

Kernel/platform-zxdiv/tricks.s

index 5eb7d39..5bae347 100644 (file)
@@ -114,6 +114,10 @@ _switchin:
        ; The second pushes are C function arguments. SDCC can trample
        ; these
 
+       ; Turn this one once we have it all sorted and debugged
+       ; ei
+       ; xor a
+       ; ld (_int_disabled),a
        push hl         ; Save
        push de
        push hl         ; Arguments
@@ -125,6 +129,9 @@ _switchin:
        pop af
        pop de          ; Restore
        pop hl
+       ld a,#1
+       ld (_int_disabled),a
+       di
        ld a, (hl)      ; We should now have a page assigned
 not_swapped:
        ; We are in DI so we can poke these directly but must not invoke