/boot,/mdec,/[T]MSCP (Part 13 of 22)

Steven M. Schultz sms at wlv.imsd.contel.com
Sat May 18 16:51:42 AEST 1991


Subject: Part 13 of 22 /boot,/mdec,[T]MSCP updates
Index:	/sys/<many>, /usr/src/etc/<several> 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
  



More information about the Comp.bugs.2bsd mailing list