From 5e2a5c4bbc054a25e3f0d8d2fbf8131d34baaef6 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 14 Feb 2015 17:02:55 +0000 Subject: [PATCH] zx128: arrange the memory map with a hole for the 5C00-5D3A area Some ROMs (eg the betadisk interface) combine an arrangement whereby the I/O ports are only accessible from the ROM with a set of ROM routines that blindly assume spectrum basic is present and wish to pee in the system variables area. Whether this will be sufficient or hacked ROMs will be needed its hard to tell given that we also need interrupts to stay off while in the foreign ROM (otherwise our IM2 code will blow up). --- Kernel/platform-zx128/config.h | 2 +- Kernel/platform-zx128/fuzix.lnk | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-zx128/config.h b/Kernel/platform-zx128/config.h index 7d54b57d..a9c9cd0a 100644 --- a/Kernel/platform-zx128/config.h +++ b/Kernel/platform-zx128/config.h @@ -69,6 +69,6 @@ #define TTYDEV BOOT_TTY /* Device used by kernel for messages, panics */ #undef SWAPDEV /* Do not use swap */ -#define NBUFS 10 /* Number of block buffers */ +#define NBUFS 9 /* Number of block buffers */ #define NMOUNTS 4 /* Number of mounts at a time */ #define MAX_BLKDEV 2 /* 2 IDE drives, 1 SD drive */ diff --git a/Kernel/platform-zx128/fuzix.lnk b/Kernel/platform-zx128/fuzix.lnk index 5f6295f2..66d3202e 100644 --- a/Kernel/platform-zx128/fuzix.lnk +++ b/Kernel/platform-zx128/fuzix.lnk @@ -6,6 +6,7 @@ -b _CODE2=0xC000 -b _CODE3=0xDB00 -b _DISCARD=0x8000 +-b _DATA=0x5D3B platform-zx128/crt0.rel platform-zx128/commonmem.rel platform-zx128/zx128.rel -- 2.34.1