Path: utzoo!attcan!uunet!snorkelwacker!ira.uka.de!smurf!urlichs From: urlichs@smurf.sub.org (Matthias Urlichs) Newsgroups: comp.unix.aux Subject: Re: SCSI device driver PROBLEM Message-ID: Date: 16 Oct 90 15:32:11 GMT References: <10716@goofy.Apple.COM> Organization: University of Karlsruhe, FRG Lines: 25 In comp.unix.aux, article <10716@goofy.Apple.COM>, rick@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@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\ Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49+721+621127(0700-2330) \o)/