From: Alan Cox Date: Mon, 13 Apr 2015 21:26:45 +0000 (+0100) Subject: bankfixed: deal with casting of SWAPBASE X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2d649cb72b75118246b5cd1d3a5be684c1cca3ba;p=FUZIX.git bankfixed: deal with casting of SWAPBASE --- diff --git a/Kernel/bankfixed.c b/Kernel/bankfixed.c index ff5f6ecd..127faacf 100644 --- a/Kernel/bankfixed.c +++ b/Kernel/bankfixed.c @@ -106,7 +106,7 @@ int swapout(ptptr p) blk = map * SWAP_SIZE; /* Write the app (and possibly the uarea etc..) to disk */ swapwrite(SWAPDEV, blk, SWAPTOP - SWAPBASE, - SWAPBASE); + (uint8_t *)SWAPBASE); pagemap_free(p); p->p_page = 0; p->p_page2 = map; @@ -136,7 +136,7 @@ void swapin(ptptr p) swapproc = p; /* always ourself */ swapread(SWAPDEV, blk, SWAPTOP - SWAPBASE, - SWAPBASE); + (uint8_t *)SWAPBASE); #ifdef DEBUG kprintf("%x: swapin done %d\n", p, p->p_page); #endif