From ce3db793c44beeb993c4e57f3deefa13c1c6eef7 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 26 Apr 2015 22:52:54 +0100 Subject: [PATCH] zx128: still hunting swap bugs --- Kernel/platform-zx128/bank128.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/platform-zx128/bank128.c b/Kernel/platform-zx128/bank128.c index d856672f..0a2823e8 100644 --- a/Kernel/platform-zx128/bank128.c +++ b/Kernel/platform-zx128/bank128.c @@ -70,6 +70,8 @@ int swapout(ptptr p) /* We mever swap the live process so the second page is always page 6 */ + if (low_bank == p) + panic("swapout"); /* Are we out of swap ? */ map = swapmap_alloc(); -- 2.34.1