SCSI device driver PROBLEM

Matthias Urlichs urlichs at smurf.sub.org
Wed Oct 17 01:32:11 AEST 1990


In comp.unix.aux, article <10716 at goofy.Apple.COM>,
  rick at apple.com (Rick Auricchio) writes:

< > [ problems with my SCSI driver ]
<     If you've written this exactly like your posting, I see the problem.
< 
< >   r->faddr = ds_wakeup();
< 
<     Specifying ds_wakeup() with the parens causes an immediate call to
<     the function.  You want ds_wakeup without parens to just stuff its
<     address.  I got bit by this one a long time ago and it took forever
<     to figure it out.

I hate C. ;-)

But that's not the problem -- I copied the other code over and added that
line to show what's going on.

The problem only shows up when I transfer more than 511 bytes. Tracing shows
that this is when the DMA stuff kicks in, which may or may not have anything
to do with the problem.

-- 
Matthias Urlichs -- urlichs at smurf.sub.org -- urlichs at smurf.ira.uka.de     /(o\
Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49+721+621127(0700-2330)   \o)/



More information about the Comp.unix.aux mailing list