From 872b9ffae1987cf80a29a70c196bc9c89e5c4830 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 14 Apr 2015 00:01:43 +0100 Subject: [PATCH] zx128: further swap fixes --- Kernel/platform-zx128/devices.c | 3 +++ Kernel/platform-zx128/devmdv.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-zx128/devices.c b/Kernel/platform-zx128/devices.c index 5e0cbce2..bc9b2963 100644 --- a/Kernel/platform-zx128/devices.c +++ b/Kernel/platform-zx128/devices.c @@ -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); } diff --git a/Kernel/platform-zx128/devmdv.c b/Kernel/platform-zx128/devmdv.c index ceefacec..dbd888dc 100644 --- a/Kernel/platform-zx128/devmdv.c +++ b/Kernel/platform-zx128/devmdv.c @@ -10,7 +10,7 @@ #include #include -#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]; -- 2.34.1