divide: do pretty stripes for I/O activity
authorAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 22:07:11 +0000 (22:07 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 22:07:11 +0000 (22:07 +0000)
It is a spectrum after all

Kernel/platform-zxdiv/divide.c

index ef85085..16bf9a7 100644 (file)
@@ -28,8 +28,14 @@ not_swapin:
             or a                                    ; test is_user
             call nz, map_process_always            ; map user memory first if required
 doread:
+            ld a,#0x05
+            out (0xfe),a
             inir                                    ; transfer first 256 bytes
+            ld a,#0x02
+            out (0xfe),a
             inir                                    ; transfer second 256 bytes
+            xor a
+            out (0xfe),a
             pop af
             or a
             jp nz, map_kernel_restore               ; else map kernel then return
@@ -56,8 +62,14 @@ not_swapout:
             or a                                    ; test is_user
             call nz, map_process_always             ; else map user memory first if required
 dowrite:
+            ld a,#0x05
+            out (0xfe),a
             otir                                    ; transfer first 256 bytes
+            ld a,#0x02
+            out (0xfe),a
             otir                                    ; transfer second 256 bytes
+            xor a
+            out (0xfe),a
             pop af
             or a
             jp nz, map_kernel_restore               ; else map kernel then return