trs80: bring in line with new swap (compile tested only)
authorAlan Cox <alan@linux.intel.com>
Mon, 20 Apr 2015 21:33:23 +0000 (22:33 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 20 Apr 2015 21:33:23 +0000 (22:33 +0100)
Kernel/platform-trs80/config.h
Kernel/platform-trs80/devhd.c

index dc1e73c..e7e7a36 100644 (file)
@@ -43,6 +43,8 @@
 
 #define MAX_SWAPS      64      /* Should be plenty (2MB!) */
 
+#define swap_map(x)    ((uint8_t *)(x))
+
 #define BOOT_TTY (512 + 1)      /* Set this to default device for stdio, stderr */
                           /* In this case, the default is the first TTY device */
 
index 0ba5533..70f1188 100644 (file)
@@ -85,7 +85,7 @@ int hd_transfer(uint8_t minor, bool is_read, uint8_t rawflag)
        } else if (rawflag == 2) {
                nblock = swapcnt >> 8;  /* in 256 byte chunks */
                dptr = (uint16_t)swapbase;
-               hd_page = swapproc->p_page;
+               hd_page = swappage;
                block = swapblk;
        } else
                goto bad2;