From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 17 21:00:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3664C16A4DF; Sun, 17 Oct 2004 21:00:54 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 691B443D46; Sun, 17 Oct 2004 21:00:53 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 30A7365491; Sun, 17 Oct 2004 22:00:51 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01186-01-2; Sun, 17 Oct 2004 22:00:50 +0100 (BST) Received: from empiric.dek.spc.org (adsl-67-121-95-134.dsl.snfc21.pacbell.net [67.121.95.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id E6DD46548D; Sun, 17 Oct 2004 22:00:49 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 0BEC964BD; Sun, 17 Oct 2004 14:00:42 -0700 (PDT) Date: Sun, 17 Oct 2004 14:00:42 -0700 From: Bruce M Simpson To: Jan Opacki Message-ID: <20041017210042.GA18249@empiric.icir.org> Mail-Followup-To: Jan Opacki , Peter Pentchev , freebsd-hackers@freebsd.org, Giorgos Keramidas References: <6.0.1.1.1.20041016135943.0353fb90@adamsatoms.com> <20041017130057.GA1132@gothmog.gr> <20041017144610.GB4639@straylight.m.ringlet.net> <1098042389.372.33.camel@200-ego-4.acn.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1098042389.372.33.camel@200-ego-4.acn.waw.pl> cc: freebsd-hackers@freebsd.org cc: Giorgos Keramidas Subject: Re: Freebsd assembly programming - IN/OUT commands. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2004 21:00:54 -0000 On Sun, Oct 17, 2004 at 09:46:29PM +0200, Jan Opacki wrote: > Thanks for help. i386_set_ioperm() is exactly what i need. I have to say though I've had processes dump core the first time I've tried doing I/O port accesses after calling i386_set_ioperm() on 5.x since 5.0. This behaviour is sporadic. With opening /dev/io, I have had no problem. Also, the /dev/io method appears to work on amd64, whereas the i386_set_ioperm() method does not. BMS