swap: correct sign of pointers
authorAlan Cox <alan@etchedpixels.co.uk>
Tue, 11 Nov 2014 21:41:44 +0000 (21:41 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 11 Nov 2014 21:41:44 +0000 (21:41 +0000)
Kernel/include/kdata.h
Kernel/include/kernel.h
Kernel/swap.c

index 771674a..7524c08 100644 (file)
@@ -33,7 +33,7 @@ extern uint16_t runticks;  /* Number of ticks current process has been swapped i
 extern time_t tod;      /* Time of day */
 extern clock_t ticks;    /* Cumulative tick counter, in minutes and ticks  */
 
-extern char *swapbase;  /* Used by device driver for swapping */
+extern uint8_t *swapbase;  /* Used by device driver for swapping */
 extern unsigned swapcnt;
 extern blkno_t swapblk;
 
index 177e915..79ed3c2 100644 (file)
@@ -671,7 +671,7 @@ extern int _select(void);
 
 /* swap.c */
 extern ptptr swapproc;
-extern char *swapbase;
+extern uint8_t *swapbase;
 extern unsigned int swapcnt;
 extern blkno_t swapblk;
 
index 4f5af05..f2cedbb 100644 (file)
@@ -17,7 +17,7 @@
 #endif
 
 
-char *swapbase;
+uint8_t *swapbase;
 unsigned int swapcnt;
 blkno_t swapblk;
 ptptr swapproc;                        /* Target process space */
@@ -128,7 +128,7 @@ static void swapin(ptptr p)
 #ifdef UDATA_SWAPSIZE
        ptr = swapin_prepare_uarea(p);
        if (ptr)
-               swapread(SWAPDEV, blk, UDATA_SWAPSIZE, (char *) &udata);
+               swapread(SWAPDEV, blk, UDATA_SWAPSIZE, (uint8_t *) &udata);
 #endif
 #ifdef DEBUG
        kprintf("%x: swapin done %d\n", p, p->p_page);