}
}
- r= ENXIO;
-
sr_add_minor(if2minor(ecp->ec_ifno, ETH_DEV_OFF),
i, eth_open, eth_close, eth_read,
eth_write, eth_ioctl, eth_cancel, eth_select);
eth_port->etp_vlan_port= NULL;
eth_port->etp_wr_pack= 0;
eth_port->etp_rd_pack= 0;
- if (r == OK)
- {
- eth_port->etp_ethaddr= *(ether_addr_t *)mess.m3_ca1;
- printf("osdep_eth_init: setting EPF_GOT_ADDR\n");
- eth_port->etp_flags |= EPF_GOT_ADDR;
- setup_read (eth_port);
- }
}
/* And now come the VLANs */
/* We secretly know that making a new pagetable
* in the same slot if one was there will never fail.
*/
- vm_panic("new_mem: pt_new failed", s);
+ vm_panic("new_mem: pt_new failed", ENOMEM);
}
rmp->vm_flags |= VMF_HASPT;
SANITYCHECK(SCL_DETAIL);
if((r=pt_writemap(pt, loc, *phys, I386_PAGE_SIZE,
I386_VM_PRESENT | I386_VM_USER | I386_VM_WRITE, 0)) != OK) {
FREE_MEM(newpage, CLICKSPERPAGE);
- printf("vm_allocpage writemap failed\n", ret);
+ printf("vm_allocpage writemap failed\n");
level--;
return NULL;
}