From owner-freebsd-multimedia@FreeBSD.ORG Sat May 19 15:29:31 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA7EB16A469 for ; Sat, 19 May 2007 15:29:31 +0000 (UTC) (envelope-from rmgls@orange.fr) Received: from smtp23.orange.fr (smtp23.orange.fr [193.252.23.111]) by mx1.freebsd.org (Postfix) with ESMTP id A521413C483 for ; Sat, 19 May 2007 15:29:31 +0000 (UTC) (envelope-from rmgls@orange.fr) Received: from smtp23.orange.fr (mwinf2313 [10.232.4.41]) by mwinf2310.orange.fr (SMTP Server) with ESMTP id 43EB01C0E26B for ; Sat, 19 May 2007 17:01:27 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2313.orange.fr (SMTP Server) with ESMTP id 745B47000091 for ; Sat, 19 May 2007 17:01:25 +0200 (CEST) Received: from orange.fr (ARouen-153-1-50-30.w90-17.abo.wanadoo.fr [90.17.233.30]) by mwinf2313.orange.fr (SMTP Server) with ESMTP id 5BEF4700008B for ; Sat, 19 May 2007 17:01:25 +0200 (CEST) X-ME-UUID: 20070519150125376.5BEF4700008B@mwinf2313.orange.fr To: freebsd-multimedia@freebsd.org From: rmgls@wanadoo.fr Date: Sat, 19 May 2007 17:01:23 +0200 Sender: rmgls@orange.fr Message-Id: <20070519150125.5BEF4700008B@mwinf2313.orange.fr> Subject: direct I/O access X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 15:29:32 -0000 hi all, 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 coredump on the outb line. SORRY, i am NOT nor a C nor a FreeBSD expert!!! all i know is Assembly language! Can you enlight me please? Many thanks in advance and bests regards Raoul Megelas rmgls@wanadeoo.fr ---cut--- .data .align 4 path: .asciz "/dev/io" .text .align 4 .global _start _start: pushl $02 pushl path int $0x80 addl $0x08,%esp movl $0x330,%edx movl $0x90,%eax outb %al,%dx nop nop nop movb $0x50,%al outb %al,%dx nop nop nop outb %al,%dx pushl $0 movl $0x1,%eax int $0x80