From 1836d1f8da1db9573cb1e4310645b503114b4650 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 11 Sep 2018 01:42:11 +0100 Subject: [PATCH] rc2014-tiny: WIP port to the minimal banked ROM system This is not a useful port. It's more of a testbed for some ideas and to clean up the swap only stuff --- Kernel/platform-rc2014/Makefile | 7 +++---- Kernel/platform-rc2014/config.h | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Kernel/platform-rc2014/Makefile b/Kernel/platform-rc2014/Makefile index 59f295c7..1053588f 100644 --- a/Kernel/platform-rc2014/Makefile +++ b/Kernel/platform-rc2014/Makefile @@ -1,12 +1,11 @@ ASRCS = crt0.s tricks.s commonmem.s rc2014.s monitor.s vfdterm.s -ASRCS += devrd_zeta2_hw.s -CSRCS = devices.c main.c devtty.c devrd_zeta2.c vfd-debug.c vfd-term.c +CSRCS = devices.c main.c devtty.c vfd-debug.c vfd-term.c CSRCS += devinput.c DISCARD_CSRCS = discard.c DISCARD_DSRCS = ../dev/devide_discard.c ../dev/ds1302_discard.c DSRCS = ../dev/devfd.c ../dev/devide.c ../dev/mbr.c ../dev/blkdev.c -DSRCS += ../dev/devrd.c ../dev/ds1302.c -DASRCS = ../dev/devfd_hw.s ../dev/devrd_hw.s ../dev/ds1302_rc2014.s +DSRCS += ../dev/ds1302.c +DASRCS = ../dev/devfd_hw.s ../dev/ds1302_rc2014.s NSRCS = ../dev/net/net_native.c AOBJS = $(ASRCS:.s=.rel) diff --git a/Kernel/platform-rc2014/config.h b/Kernel/platform-rc2014/config.h index bf5ba99e..e86f6fe4 100644 --- a/Kernel/platform-rc2014/config.h +++ b/Kernel/platform-rc2014/config.h @@ -22,6 +22,7 @@ #define PROGBASE 0x0000 /* also data base */ #define PROGLOAD 0x0100 /* also data base */ #define PROGTOP 0xF000 /* Top of program, base of U_DATA copy */ +/* FIXME: check this... for discard looks wrong */ #define KERNTOP 0xC000 /* Top of kernel (first 3 banks), base of shared bank */ #define PROC_SIZE 64 /* Memory needed per process */ @@ -50,7 +51,7 @@ extern unsigned int swap_dev; #define NBUFS 4 /* Number of block buffers, keep in line with space reserved in zeta-v2.s */ #define NMOUNTS 4 /* Number of mounts at a time */ -#define MAX_BLKDEV 4 /* 1 ROM disk, 1 RAM disk, 1 floppy, 1 IDE */ +#define MAX_BLKDEV 5 /* 1 floppy, 4 IDE */ /* On-board DS1302, we can read the time of day from it */ #define CONFIG_RTC -- 2.34.1