bank16k: first small fix to move towards working 16k bank swap
authorBrett Gordon <beretta42@gmail.com>
Sun, 26 Jul 2015 12:19:27 +0000 (13:19 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 26 Jul 2015 12:22:08 +0000 (13:22 +0100)
Kernel/bank16k.c

index c7f7e31..decb25e 100644 (file)
@@ -177,7 +177,7 @@ int swapout(ptptr p)
        uint16_t i;
        uint8_t *pt = (uint8_t *)&p->p_page;
 
-       if (page)
+       if (!page)
                panic("process already swapped!\n");
 #ifdef DEBUG
        kprintf("Swapping out %x (%d)\n", p, p->p_page);