From owner-freebsd-hackers@FreeBSD.ORG Wed May 30 06:50:34 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5109B16A421 for ; Wed, 30 May 2007 06:50:34 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id DCA9413C44B for ; Wed, 30 May 2007 06:50:33 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.lan) by mailfe10.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 336062019; Wed, 30 May 2007 08:50:32 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Wed, 30 May 2007 08:50:23 +0200 User-Agent: KMail/1.9.5 References: <20070529181027.65AD5700009C@mwinf2454.orange.fr> In-Reply-To: <20070529181027.65AD5700009C@mwinf2454.orange.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705300850.23375.hselasky@c2i.net> Cc: rmgls@wanadoo.fr Subject: Re: direct I/O access X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2007 06:50:34 -0000 On Tuesday 29 May 2007 20:10, rmgls@wanadoo.fr wrote: > hi all, > > Sorry for cross posting, but perhaps hackers is a better list than > multimedia for this topic. > > i am trying to port my old assembler soft for Dos to FreeBSD. > i need to write and read directly to the midi and scsi device. > when i try something like this i receive a sigbus error > > SORRY, i am NOT nor a C nor a FreeBSD expert!!! > all i know is Assembly language! > > i made some search in the devel handbook and did not found the solution. > What is wrong here? > Can you enlight me please? I think you need to open /dev/io before your program can execute I/O instructions. --HPS