* Allocate the maps for this task post fork
* We have a hackish fix for init that would be nice
* resolve.
+ *
+ * FIXME: we need to move udata.u_top into p-> in order to
+ * support banked swapping.
*/
int pagemap_alloc(ptptr p)
{
uint16_t base = SWAPBASE;
uint16_t size = (0x4000 - SWAPBASE) >> 9;
uint16_t i;
- uint8_t *pt = (uint8_t *)&p->page;
+ uint8_t *pt = (uint8_t *)&p->p_page;
if (page)
panic("process already swapped!\n");
uint16_t base = SWAPBASE;
uint16_t size = (0x4000 - SWAPBASE) >> 9;
uint16_t i;
- uint8_t *pt = (uint8_t *)&p->page;
+ uint8_t *pt = (uint8_t *)&p->p_page;
#ifdef DEBUG
kprintf("Swapin %x, %d\n", p, p->p_page);