v65c816: update memory map from C, set pages right
authorAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 23:16:24 +0000 (23:16 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 23:16:24 +0000 (23:16 +0000)
Kernel/platform-v65c816-big/config.h
Kernel/platform-v65c816-big/main.c

index b73d08e..e64dde5 100644 (file)
@@ -25,7 +25,7 @@
  *     if we add swap.
  */
 #define CONFIG_BANK_65C816
-#define KERNEL_BANK    0
+#define KERNEL_BANK    2
 #define MAX_MAPS       125
 #define MAP_SIZE    0xFC00  /* 0-FBFF */
 
index da471b7..effc7d7 100644 (file)
@@ -19,14 +19,17 @@ void do_beep(void)
 }
 
 /*
- * 7 banks, kernel in bank 0
+ * User in banks 3-125 or thereabouts
+ * 2 is kdata
+ * 1 is kcode
+ * 0 is all the stacks and DP stuff we can't put elsehwere
  */
 
 void pagemap_init(void)
 {
     int i;
     /* Bank 0 is the kernel */
-    for (i = MAX_MAPS ; i > 0; i--)
+    for (i = MAX_MAPS ; i > 2; i--)
         pagemap_add(i);
 }