From 0b7e75b14ffd94faba55b1c7957fbc26925c1bbf Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 20 Apr 2015 22:41:15 +0100 Subject: [PATCH] zx128: turn on custom banker --- Kernel/platform-zx128/Makefile | 2 +- Kernel/platform-zx128/config.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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)) -- 2.34.1