*BSD News Article 44169


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!news2.near.net!news.delphi.com!BIX.com!sysec
From: sysec@BIX.com (sysec on BIX)
Newsgroups: comp.os.386bsd.questions
Subject: outb() outw() and friends..
Date: 16 May 95 18:50:54 GMT
Organization: Delphi Internet Services Corporation
Lines: 14
Message-ID: <sysec.800650254@BIX.com>
NNTP-Posting-Host: bix.com


Needing to send data to ports directly I saw that there is no outb() and
outw() in the FreeBSD 1.1.5 libs, so I took the assembler source from the
kernel distribution and plug it into my src. It compile fine but it cores.
I'm sure that is a problem in the integration of the asm code with my C
program since it cores even if the outb() has a 'ret'. 
What are the precautions I must take when integratin asm code ?
Any compiler switch ?
Any as switch ?
What about ld ?
Help me out please.
(sources would help.)
THanks.