From: Alan Cox Date: Mon, 20 Apr 2015 21:41:15 +0000 (+0100) Subject: zx128: turn on custom banker X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0b7e75b14ffd94faba55b1c7957fbc26925c1bbf;p=FUZIX.git zx128: turn on custom banker --- diff --git a/Kernel/platform-zx128/Makefile b/Kernel/platform-zx128/Makefile index 63517024..ea317290 100644 --- a/Kernel/platform-zx128/Makefile +++ b/Kernel/platform-zx128/Makefile @@ -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 diff --git a/Kernel/platform-zx128/config.h b/Kernel/platform-zx128/config.h index 58f8575b..4dede83d 100644 --- a/Kernel/platform-zx128/config.h +++ b/Kernel/platform-zx128/config.h @@ -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))