public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87ce811
)
bankfixed: deal with casting of SWAPBASE
author
Alan Cox
<alan@linux.intel.com>
Mon, 13 Apr 2015 21:26:45 +0000
(22:26 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 13 Apr 2015 21:26:45 +0000
(22:26 +0100)
Kernel/bankfixed.c
patch
|
blob
|
history
diff --git
a/Kernel/bankfixed.c
b/Kernel/bankfixed.c
index
ff5f6ec
..
127faac
100644
(file)
--- 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