From: Alan Cox Date: Mon, 20 Apr 2015 21:33:07 +0000 (+0100) Subject: bankfixed: correct p_page error X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=05a1f9f5d0faa19e7a884767024bde1dc28f0fea;p=FUZIX.git bankfixed: correct p_page error --- diff --git a/Kernel/bankfixed.c b/Kernel/bankfixed.c index 1db1d143..a0fa6f11 100644 --- a/Kernel/bankfixed.c +++ b/Kernel/bankfixed.c @@ -103,7 +103,7 @@ int swapout(ptptr p) return ENOMEM; blk = map * SWAP_SIZE; /* Write the app (and possibly the uarea etc..) to disk */ - swapwrite(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->page); + swapwrite(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->p_page); pagemap_free(p); p->p_page = 0; p->p_page2 = map; @@ -127,7 +127,7 @@ void swapin(ptptr p, uint16_t map) kprintf("%x: nopage!\n", p); return; } - swapread(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->page); + swapread(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->p_page); #ifdef DEBUG kprintf("%x: swapin done %d\n", p, p->p_page); #endif