zx128: still hunting swap bugs
authorAlan Cox <alan@linux.intel.com>
Sun, 26 Apr 2015 21:52:54 +0000 (22:52 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 26 Apr 2015 21:52:54 +0000 (22:52 +0100)
Kernel/platform-zx128/bank128.c

index d856672..0a2823e 100644 (file)
@@ -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();