Subject: Re: ed device with bus.h failes to clear shared memory
To: None <enami@ba2.so-net.or.jp>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 05/02/1996 10:15:24
On Thu, 2 May 1996 21:54:55 +0900 (JST) 
 enami@ba2.so-net.or.jp wrote:

 > The previous if_ed.c (version 1.91) works fine.  Or if I changed the
 > code from
 > 
 > 	/* Now zero memory and verify that it is clear. */
 > 	for (i = 0; i < memsize; ++i)
 > 		bus_mem_write_1(bc, memh, sc->mem_start + i, 0);
 > 
 > to
 > 	bzero(memh, memsize);
 > 
 > it also works.  Does any one have similar experience?

I haven't had that experience with an SMC card ... this is how my card is 
probed:

ed0 at isa0 port 0x280-0x29f iomem 0xd0000-0xd3fff irq 9
ed0: address 00:00:c0:94:f6:72, type WD8013WC (16-bit) aui

...though it is an SMC card...

It's interesting that it fails ...

I have some additions to the bus.h interface that attempt to address 
memory copying and zeroing.  On the i386, they will expand to bcopy and 
bzero, so once those are in, this problem should go away (though, I'm 
REALLY curious why this problem exists in the first place...)

I'll try and attack this today.

----save the ancient forests - http://www.bayarea.net/~thorpej/forest/----
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939