From 2d649cb72b75118246b5cd1d3a5be684c1cca3ba Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 13 Apr 2015 22:26:45 +0100 Subject: [PATCH] bankfixed: deal with casting of SWAPBASE --- Kernel/bankfixed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1