*BSD News Article 33987


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!news.adelaide.edu.au!gateway.dircsa.org.au!cleese.apana.org.au!apanix.apana.org.au!hart
From: hart@apanix.apana.org.au (Leigh Hart)
Newsgroups: comp.os.386bsd.questions
Subject: Undefined symbols _outsl, _insl in kernel compile?!
Date: 7 Aug 94 03:01:09 GMT
Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines)
Lines: 60
Message-ID: <hart.776228469@apanix.apana.org.au>
NNTP-Posting-Host: seldon.apanix.apana.org.au
Keywords: kernel


Hi all,

I'm running FreeBSD-1.1-Gamma and am trying to make use of my
VLB SCSI card (aic6360).  I have the driver for the aic6360
that reportedly is being released with FreeBSD-2.0 (4.4lite)
and I also have some instructions on getting it compiled into
my FreeBSD-1.1-Gamma kernel.

The kernel build runs fine until the link phase:

loading 386bsd
aic6360.o: Undefined symbol _outsl referenced from text segment
aic6360.o: Undefined symbol _insl referenced from text segment
*** Error code 1

Stop.

The sections of code that uses these two symbols are:

#if AIC_USE_DWORDS
                outsl(DMADATALONG, aic->dp, xfers);
#else
                outsw(DMADATA, aic->dp, xfers);
#endif 

and

#if AIC_USE_DWORDS
                insl(DMADATALONG, aic->dp, DINAMOUNT/4);
#else
                insw(DMADATA, aic->dp, DINAMOUNT/2);
#endif 

The comments and definition for AIC_USE_DWORDS are:

/* Use doubleword transfers to/from SCSI chip.  Note: This requires
 * motherboard support.  Basicly, some motherboard chipsets are able to
 * split a 32 bit I/O operation into two 16 bit I/O operations,
 * transparently to the processor.  This speeds up some things, notably long
 * data transfers.
 */
#define AIC_USE_DWORDS 1

Is outsl and insl something that's only going to be in FreeBSD-2.0 ?
I noticed in /usr/include/machine/cpufunc.h that only insw and outsw
are defined - is my performance going to be that bad only using those
instead of insl and outsl ?

Thanks for any info!

Cheers

Leigh

--
| "By the time they had diminished | Leigh Hart                |
|  from 50 to 8, the other dwarves | <hart@eppie.apana.org.au> |
|  began to suspect 'Hungry' ..."  | C/- PO Box 758            |
|   -- Gary Larson, "The Far Side" | North Adelaide  SA  5006  |