rc2014-tiny: use new single parent first model and add map_buffers
authorAlan Cox <alan@linux.intel.com>
Sat, 8 Dec 2018 01:18:09 +0000 (01:18 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 8 Dec 2018 01:18:09 +0000 (01:18 +0000)
Kernel/platform-rc2014-tiny/config.h
Kernel/platform-rc2014-tiny/rc2014.s

index 5c9a0e5..647af6d 100644 (file)
 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
index 6e327c9..5f9c154 100644 (file)
@@ -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
 ;