From abeea40814836f8456f9f6d4775079ae631aa833 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Sun, 26 Jul 2015 13:19:27 +0100 Subject: [PATCH] bank16k: first small fix to move towards working 16k bank swap --- Kernel/bank16k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1