sane-project-website/old-archive/1997-10/0081.html

63 wiersze
3.0 KiB
HTML

<!-- received="Wed Oct 15 15:07:20 1997 MST" -->
<!-- sent="Wed, 15 Oct 1997 20:03:25 +0100 (MET)" -->
<!-- name="becka@rz.uni-duesseldorf.de" -->
<!-- email="becka@rz.uni-duesseldorf.de" -->
<!-- subject="Re: "strange" things with SANE on IRIX 5.3" -->
<!-- id="m0xLYj7-000BWcC@charon.beck-sw.de" -->
<!-- inreplyto="3444DF3A.86D40022@easysw.com" -->
<title>sane-devel: Re: "strange" things with SANE on IRIX 5.3</title>
<h1>Re: "strange" things with SANE on IRIX 5.3</h1>
<a href="mailto:becka@rz.uni-duesseldorf.de"><i>becka@rz.uni-duesseldorf.de</i></a><br>
<i>Wed, 15 Oct 1997 20:03:25 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#81">[ date ]</a><a href="index.html#81">[ thread ]</a><a href="subject.html#81">[ subject ]</a><a href="author.html#81">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0082.html">David Mosberger-Tang: "new Linux RPMs available"</a>
<li> <b>Previous message:</b> <a href="0080.html">Mark Cornick: "Re: dlh?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi !<br>
<i>&gt; &gt; This looks like the scsi-code for Irix expects SCSI-buffers to be aligned,</i><br>
<i>&gt; &gt; i.e. the address must be dividable by a certain quantity.</i><br>
<i>&gt; IRIX requires buffers aligned to a 32-bit boundary.</i><br>
<p>
<i>&gt; &gt; Someone who knows the Irix SCSI code should check this and provide properly</i><br>
<i>&gt; &gt; aligned buffers.</i><br>
<i>&gt; That'd be me - the problem is that the buffers (if malloc'd) *should* be</i><br>
<i>&gt; aligned to a 32-bit boundary with IRIX 3.x through 6.x.</i><br>
Yes. malloc() is assumed to give you properly aligned buffers. I would have<br>
been very astonished, if IRIX failed in that ..<br>
<p>
<i>&gt; Nope, I think the sense buffer is not aligned properly for some reason</i><br>
<i>&gt; on his system (the sense buffer is an automatic array of chars on the</i><br>
<i>&gt; stack and may not be properly aligned).</i><br>
Ah. Yes. The original post shows accesses at an address ending in 0x???2.<br>
So either malloc'ing the array or using a union with a reasonably big data-<br>
type should be used to align it.<br>
<p>
<i>&gt; A patch will follow later this week...</i><br>
TNX. CU,Andy<br>
<p>
<pre>
--
Andreas Beck | Email : &lt;<a href="mailto:becka@sunserver1.rz.uni-duesseldorf.de">becka@sunserver1.rz.uni-duesseldorf.de</a>&gt;
======== GGI - The Right Thing To Do : <a href="http://synergy.foo.net/~ggi/">http://synergy.foo.net/~ggi/</a> ========
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0082.html">David Mosberger-Tang: "new Linux RPMs available"</a>
<li> <b>Previous message:</b> <a href="0080.html">Mark Cornick: "Re: dlh?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>