From c8427dd7d5d7b594c9de7798fa875f20b3916c1b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 8 Dec 2018 01:18:09 +0000 Subject: [PATCH] rc2014-tiny: use new single parent first model and add map_buffers --- Kernel/platform-rc2014-tiny/config.h | 7 ++++++- Kernel/platform-rc2014-tiny/rc2014.s | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-rc2014-tiny/config.h b/Kernel/platform-rc2014-tiny/config.h index 5c9a0e50..647af6d5 100644 --- a/Kernel/platform-rc2014-tiny/config.h +++ b/Kernel/platform-rc2014-tiny/config.h @@ -24,10 +24,15 @@ extern unsigned int swap_dev; #define SWAP_SIZE 0x61 /* 48.5K in blocks (prog + udata) */ #define SWAPBASE 0x0000 /* start at the base of user mem */ -#define SWAPTOP 0xC200 /* Swap out udata and program */ +#define SWAPTOP 0xC000 /* Swap out program */ +#define CONFIG_SPLIT_UDATA +#define UDATA_BLKS 1 +#define UDATA_SIZE 0x200 /* One block */ #define MAX_SWAPS 16 /* We will size if from the partition */ /* Swap will be set up when a suitably labelled partition is seen */ #define CONFIG_DYNAMIC_SWAP +#define MAXTICKS 20 /* As we are pure swap */ +#define CONFIG_PARENT_FIRST /* For pure swap this is far faster */ /* * When the kernel swaps something it needs to map the right page into diff --git a/Kernel/platform-rc2014-tiny/rc2014.s b/Kernel/platform-rc2014-tiny/rc2014.s index 6e327c9d..5f9c1543 100644 --- a/Kernel/platform-rc2014-tiny/rc2014.s +++ b/Kernel/platform-rc2014-tiny/rc2014.s @@ -15,6 +15,7 @@ .globl map_save_kernel .globl map_restore .globl map_for_swap + .globl map_buffers .globl platform_interrupt_all .globl _platform_reboot .globl _platform_monitor @@ -365,6 +366,7 @@ map_save_kernel: pop af ret + ; ; A little SIO helper ; -- 2.34.1