config: tweaks and fix swap range
authorAlan Cox <alan@linux.intel.com>
Sat, 6 Apr 2019 21:40:01 +0000 (22:40 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 6 Apr 2019 21:40:01 +0000 (22:40 +0100)
Once we get that far we will need to swap the udata not just process image

Kernel/platform-msx1/config.h

index 4826818..e9b9527 100644 (file)
@@ -16,7 +16,7 @@
 #define PROGBASE    0x0000  /* also data base */
 #define PROGLOAD    0x0100  /* also data base */
 #define PROGTOP     0xC000  /* Top of program */
-#define KERNTOP            0xF000  /* Grow buffers to 0xF000 */
+#define KERNTOP            0xFFFF  /* Grow buffers to 0xF000 */
 
 #define PROC_SIZE   48   /* Memory needed per process (inc udata) */
 
@@ -24,7 +24,7 @@
 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            0xC000      /* Swap out program */
+#define SWAPTOP            0xC200      /* Swap out program */
 #define CONFIG_SPLIT_UDATA     /* Adjacent addresses but different bank! */
 #define UDATA_BLKS  1          /* One block of udata */
 #define UDATA_SIZE  512                /* 512 bytes of udata */
@@ -46,14 +46,14 @@ extern unsigned int swap_dev;
 /*
  *     When the kernel swaps something it needs to map the right page into
  *     memory using map_for_swap and then turn the user address into a
- *     physical address. For a simple banked setup there is no conversion
- *     needed so identity map it.
+ *     physical address. For our one process setup we can identity map. We'll
+ *     have to in fact as MSX1 has no flexible mapping.
  */
 #define swap_map(x)    ((uint8_t *)(x))
 
 /* We need a tidier way to do this from the loader */
 #define CMDLINE        NULL  /* Location of root dev name */
-#define BOOTDEVICENAMES "hd#,fd,,rd"
+#define BOOTDEVICENAMES "hd#,fd"
 
 //#define CONFIG_DYNAMIC_BUFPOOL /* we expand bufpool to overwrite the _DISCARD segment at boot */
 #define NBUFS    5        /* Number of block buffers, keep in line with space reserved in zeta-v2.s */