zx128: further swap fixes
authorAlan Cox <alan@linux.intel.com>
Mon, 13 Apr 2015 23:01:43 +0000 (00:01 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 13 Apr 2015 23:01:43 +0000 (00:01 +0100)
Kernel/platform-zx128/devices.c
Kernel/platform-zx128/devmdv.c

index 5e0cbce..bc9b296 100644 (file)
@@ -48,4 +48,7 @@ void device_init(void)
 #ifdef CONFIG_IDE
   devide_init();
 #endif
+  /* Hack for now - we need to open the swap to get the map. Should
+     we open swap nicely somewhere generic ? */
+  d_open(SWAPDEV, 0);
 }
index ceeface..dbd888d 100644 (file)
@@ -10,7 +10,7 @@
 #include <printf.h>
 #include <devmdv.h>
 
-#define MAX_MDV                2               /* for now */
+#define MAX_MDV                4               /* for now */
 
 /* Should probably have a max and a max open to keep the maps managable */
 static unsigned char mdvmap[MAX_MDV][256];