zx128: turn on custom banker
authorAlan Cox <alan@linux.intel.com>
Mon, 20 Apr 2015 21:41:15 +0000 (22:41 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 20 Apr 2015 21:41:15 +0000 (22:41 +0100)
Kernel/platform-zx128/Makefile
Kernel/platform-zx128/config.h

index 6351702..ea31729 100644 (file)
@@ -1,4 +1,4 @@
-CSRCS = devtty.c devices.c main.c devmdv.c devfd.c
+CSRCS = devtty.c devices.c main.c devmdv.c devfd.c bank128.c
 DSRCS = ../dev/devide.c ../dev/mbr.c ../dev/blkdev.c
 DDSRCS = ../dev/devide_discard.c
 ASRCS = crt0.s zx128.s zxvideo.s microdrive.s disciple.s
index 58f8575..4dede83 100644 (file)
@@ -33,8 +33,7 @@
 #undef CONFIG_FONT8X8
 #undef CONFIG_FONT8X8SMALL
 
-/* Two fixed banks in use */
-#define CONFIG_BANK_FIXED
+/* Custom banking */
 
 /* We have two mappings from our 128K of memory */
 #define MAX_MAPS       2
@@ -74,3 +73,5 @@
 #define SWAPTOP  0x10000UL
 #define SWAP_SIZE 0x40
 #define MAX_SWAPS 3            /* For now */
+
+#define swap_map(x)            ((uint8_t *)(x))