zx128: arrange the memory map with a hole for the 5C00-5D3A area
authorAlan Cox <alan@linux.intel.com>
Sat, 14 Feb 2015 17:02:55 +0000 (17:02 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 14 Feb 2015 17:02:55 +0000 (17:02 +0000)
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
Kernel/platform-zx128/fuzix.lnk

index 7d54b57..a9c9cd0 100644 (file)
@@ -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 */
index 5f6295f..66d3202 100644 (file)
@@ -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