From: Alan Cox Date: Wed, 19 Oct 2016 19:49:30 +0000 (+0100) Subject: v68: clean up config.h X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b2dad76654ff522e12cfed07684afbf993b7edce;p=FUZIX.git v68: clean up config.h --- diff --git a/Kernel/platform-v68/config.h b/Kernel/platform-v68/config.h index cc5bb4dd..6e36c61c 100644 --- a/Kernel/platform-v68/config.h +++ b/Kernel/platform-v68/config.h @@ -4,22 +4,22 @@ #undef CONFIG_MONITOR /* Profil syscall support (not yet complete) */ #undef CONFIG_PROFIL -/* Single tasking - for now while we get it booting */ -#undef CONFIG_SINGLETASK #define CONFIG_32BIT -/* Multiple processes in memory at once */ #define CONFIG_MULTI - #define CONFIG_SWAP_ONLY #define CONFIG_USERMEM_DIRECT #define CONFIG_BANKS 1 #define PROC_SIZE 128 +#define CONFIG_SPLIT_UDATA +#define UDATA_SIZE 1024 +#define UDATA_BLKS 2 + #define PROGBASE 0x20000UL #define PROGTOP 0x30000UL -#define SWAP_SIZE 256 +#define SWAP_SIZE (256 + 2) /* 2 for the udata */ #define SWAPBASE PROGBASE #define SWAPTOP 0x30000UL #define MAX_SWAPS PTABSIZE @@ -27,28 +27,6 @@ #define SWAPDEV (1) -#if 0 -/* Multiple processes in memory at once */ -#define CONFIG_MULTI -/* Buddy based MMU */ -#define CONFIG_BUDDY_MMU -#define BUDDY_NUMLEVEL 9 /* 1 MByte */ -#define BUDDY_BLOCKBITS 12 /* 4K pages */ -#define BUDDY_BLOCKSIZE 4096 -/* FIXME: these should be dynamic */ -#define BUDDY_BASE ((uint8_t *)0x00000) /* Manage the low 1MB */ -#define BUDDY_START ((uint8_t *)0x10000) /* First usable 64K */ -#define BUDDY_TOP ((uint8_t *)0x80000) /* End at 512K - should be 7FFFF ? */ -#define BUDDY_TABLE BUDDY_START /* Pull the table from the pool */ -#define BUDDY_TREESIZE 511 /* 1MB in 4K pages */ - -#define CONFIG_BANKS 1 /* FIXME */ -#define CONFIG_USERMEM_BUDDY /* TODO */ -/* Programs run under MMU with zero base */ -#define PROGBASE 0 - -#endif - #define TICKSPERSEC 100 /* Ticks per second */ #define BOOT_TTY (512 + 1) /* Set this to default device for stdio, stderr */ @@ -61,8 +39,8 @@ /* Device parameters */ #define NUM_DEV_TTY 1 #define TTYDEV BOOT_TTY /* Device used by kernel for messages, panics */ -#define NBUFS 20 /* Number of block buffers */ -#define NMOUNTS 6 /* Number of mounts at a time */ +#define NBUFS 10 /* Number of block buffers */ +#define NMOUNTS 4 /* Number of mounts at a time */ #define MAX_BLKDEV 4