From: Brett Gordon Date: Sun, 26 Jul 2015 12:19:27 +0000 (+0100) Subject: bank16k: first small fix to move towards working 16k bank swap X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=abeea40814836f8456f9f6d4775079ae631aa833;p=FUZIX.git bank16k: first small fix to move towards working 16k bank swap --- diff --git a/Kernel/bank16k.c b/Kernel/bank16k.c index c7f7e311..decb25ee 100644 --- a/Kernel/bank16k.c +++ b/Kernel/bank16k.c @@ -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);