Subject: NetBSD master CVS tree commits
To: None <source-changes@pain.lcs.mit.edu>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 01/12/1996 22:40:02
chuck
Fri Jan 12 22:35:55 EST 1996
Update of /a/cvsroot/src/sys/arch/sparc/dev
In directory pain.lcs.mit.edu:/b/tmp/cvs-serv10218

Modified Files:
	xd.c 
Log Message:
 - call mapiodev() with sizeof(struct xdc) rather than ra_len (which is
	zero since xdcmatch no longer sets it).   [if you call mapiodev()
	with a zero size it will reuse the KVA it returns, swiping the device
	out from under you!]
 - make xdc->iopbase point in the kernels DVMA space rather than at the
	normal malloc'd KVA.   this isn't compatable with sun4m [doesn't
	have a kernel DVMA space] and will need to be changed later (XXX).
 - move disk_attach() to before reading the disk label as per Jason.
	otherwise we are reading into an unallocated buffer (oops!)