SCSI HELP!
27-Aug-90 08:42:20
Sb: #118016-SCSI HELP!
Fm: Harry Manolopoulos 75410,322
To: Don Curtis/SYSOP 76703,4321
Thanks. I'll try that. What I found did work properly was to create a
second uninitialized UBYTE buff2[512] array and memcpy the UBYTE buf1[512]
initialized array to it, then use buff2 to scsidata. Mike Roth said the
compiler will put initialized data in a data hunk and the uninitialized
data in a bss hunk, and this was the only difference in the code.
Does your cast look like this? :
SCSICmd.scsi_Data = ( (UWORD * ) &(UWORD)buffer[0] );
The Lattice / SAS C compiler 5.10 has an __aligned keyword to force
alignment. It may really be a linker issue as I could duplicate the problem
in assembly (A68k) and Blink using an initialized data array but I haven't
tried using a second buffer. I'll let you know what I find out.