From: Alan Cox Date: Sun, 16 Sep 2018 14:55:41 +0000 (+0100) Subject: rc2014: remove last bits of ramdisk crud X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=08bcae559e8c534b2b5f8ce57ef510e8aedb8f6d;p=FUZIX.git rc2014: remove last bits of ramdisk crud --- diff --git a/Kernel/platform-rc2014/config.h b/Kernel/platform-rc2014/config.h index 9db2b672..1823eef3 100644 --- a/Kernel/platform-rc2014/config.h +++ b/Kernel/platform-rc2014/config.h @@ -13,7 +13,7 @@ /* Permit large I/O requests to bypass cache and go direct to userspace */ #define CONFIG_LARGE_IO_DIRECT /* 32 x 16K pages, 3 pages for kernel, whatever the RAM disk uses */ -#define MAX_MAPS (32 - 3 - DEV_RD_RAM_PAGES) +#define MAX_MAPS (32 - 3) /* Banks as reported to user space */ #define CONFIG_BANKS 4 diff --git a/Kernel/platform-rc2014/discard.c b/Kernel/platform-rc2014/discard.c index 7bee27be..27abf14c 100644 --- a/Kernel/platform-rc2014/discard.c +++ b/Kernel/platform-rc2014/discard.c @@ -33,7 +33,7 @@ void pagemap_init(void) * Page 35 is the common area * Pages starting from DEV_RD_START are used by RAM disk */ - for (i = 32 + 4; i < (DEV_RD_RAM_START >> 14); i++) + for (i = 32 + 4; i < 64; i++) pagemap_add(i); /* finally add the common area */