Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!sdd.hp.com!elroy.jpl.nasa.gov!mahendo!wlbr!news From: sms@wlv.imsd.contel.com (Steven M. Schultz) Newsgroups: comp.bugs.2bsd Subject: /boot,/mdec,/[T]MSCP (Part 13 of 22) Message-ID: <1991May18.065142.26593@wlbr.imsd.contel.com> Date: 18 May 91 06:51:42 GMT Sender: news@wlbr.imsd.contel.com (news) Organization: Contel Federal Systems Lines: 54 Nntp-Posting-Host: wlv.imsd.contel.com Subject: Part 13 of 22 /boot,/mdec,[T]MSCP updates Index: /sys/, /usr/src/etc/ 2.11BSD Description: Repeat-By: Fix: See part 0 (the README) for the Description, the Reason and the instructions on how update your system. This is part 13 of 22 The existence of a UNIBUS MAP is tested rather than being assumed. *** /usr/src/sys/sys/sys_net.c.old Wed Dec 19 10:16:49 1990 --- /usr/src/sys/sys/sys_net.c Sun Mar 17 01:14:29 1991 *************** *** 122,138 **** * This is early in the systems life, so there had better be * sufficient UMRs available! */ ! miostart = miobase; ! s = (int)btoub(miosize); ! first = NETUBAA(s); ! mioumr = (ubadr_t)first << 13; ! ubp = &UBMAP[first]; ! paddr = ctob((ubadr_t)miostart); ! while (s--) { ! ubp->ub_lo = loint(paddr); ! ubp->ub_hi = hiint(paddr); ! ubp++; ! paddr += (ubadr_t)UBPAGE; } #endif UNIBUS_MAP --- 122,140 ---- * This is early in the systems life, so there had better be * sufficient UMRs available! */ ! if (mfkd(&ubmap)) { ! miostart = miobase; ! s = (int)btoub(miosize); ! first = NETUBAA(s); ! mioumr = (ubadr_t)first << 13; ! ubp = &UBMAP[first]; ! paddr = ctob((ubadr_t)miostart); ! while (s--) { ! ubp->ub_lo = loint(paddr); ! ubp->ub_hi = hiint(paddr); ! ubp++; ! paddr += (ubadr_t)UBPAGE; ! } } #endif UNIBUS_MAP