/* Write the app (and possibly the uarea etc..) to disk */
#ifdef CONFIG_SPLIT_UDATA
swapwrite(SWAPDEV, blk, UDATA_SIZE, (uaddr_t)&udata, 1);
-#endif
swapwrite(SWAPDEV, blk + UDATA_BLKS, SWAPTOP - SWAPBASE,
SWAPBASE, 1);
+#else
+ swapwrite(SWAPDEV, blk, SWAPTOP - SWAPBASE,
+ SWAPBASE, 1);
+#endif
p->p_page = 0;
p->p_page2 = map;
#ifdef DEBUG
#ifdef CONFIG_SPLIT_UDATA
swapread(SWAPDEV, blk, UDATA_SIZE, (uaddr_t)&udata, 1);
-#endif
swapread(SWAPDEV, blk + UDATA_BLKS, SWAPTOP - SWAPBASE,
SWAPBASE, 1);
+#else
+ swapread(SWAPDEV, blk, SWAPTOP - SWAPBASE,
+ SWAPBASE, 1);
+#endif
#ifdef DEBUG
kprintf("%x: swapin done %d\n", p, p->p_page);
#endif