rc2014-tiny: WIP port to the minimal banked ROM system
authorAlan Cox <alan@linux.intel.com>
Tue, 11 Sep 2018 00:42:11 +0000 (01:42 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 11 Sep 2018 00:42:11 +0000 (01:42 +0100)
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
Kernel/platform-rc2014/config.h

index 59f295c..1053588 100644 (file)
@@ -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)
index bf5ba99..e86f6fe 100644 (file)
@@ -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