From 4e53b6851348e4b71bcfe5bbf2f323fd15940cbd Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 4 Dec 2016 13:45:24 +0000 Subject: [PATCH] coco2cart: prepare for discard recovery Align everything so that we can reclaim the discard memory space --- Kernel/platform-coco2cart/config.h | 6 ++++++ Kernel/platform-coco2cart/fuzix.link | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-coco2cart/config.h b/Kernel/platform-coco2cart/config.h index eaa33ce5..eeba3db8 100644 --- a/Kernel/platform-coco2cart/config.h +++ b/Kernel/platform-coco2cart/config.h @@ -30,6 +30,12 @@ #define CONFIG_FONT8X8 #define CONFIG_FONT8X8SMALL +/* We can reclaim discard into buffers */ +#define CONFIG_DYNAMIC_BUFPOOL + +/* Allow for our swap heavy nature */ +#define MAXTICKS 25 + extern unsigned char vt_mangle_6847(unsigned char c); #define VT_MAP_CHAR(x) vt_mangle_6847(x) diff --git a/Kernel/platform-coco2cart/fuzix.link b/Kernel/platform-coco2cart/fuzix.link index 93ee4b63..33daa57d 100644 --- a/Kernel/platform-coco2cart/fuzix.link +++ b/Kernel/platform-coco2cart/fuzix.link @@ -7,10 +7,11 @@ section .magic section .common section .data section .bss +section .bufpool +section .discard section .videodata section .text2 section .video -section .discard section .start load 0xC000 section .text section .text3 -- 2.34.1