From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 16 19:03:45 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 7C85316A4D4 for ; Sat, 16 Oct 2004 19:03:45 +0000 (GMT) Received: from relay03.roc.ny.frontiernet.net (relay03.roc.ny.frontiernet.net [66.133.131.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E60E43D1F for ; Sat, 16 Oct 2004 19:03:45 +0000 (GMT) (envelope-from adam@redprince.net) Received: from filter01.roc.ny.frontiernet.net (filter01.roc.ny.frontiernet.net [66.133.131.176]) by relay03.roc.ny.frontiernet.net (Postfix) with ESMTP id B13DC191E74 for ; Sat, 16 Oct 2004 19:03:44 +0000 (UTC) Received: from relay03.roc.ny.frontiernet.net ([66.133.131.36]) [66.133.131.176]) (amavisd-new, port 10024) with LMTP id 14487-36-47 for ; Sat, 16 Oct 2004 19:03:44 +0000 (UTC) Received: from adamsatoms.redprince.net (65-73-73-165.bras01.rnd.wi.frontiernet.net [65.73.73.165]) by relay03.roc.ny.frontiernet.net (Postfix) with ESMTP id 63A971920C2 for ; Sat, 16 Oct 2004 19:03:43 +0000 (UTC) Message-Id: <6.0.1.1.1.20041016135943.0353fb90@adamsatoms.com> X-Sender: adam@adamsatoms.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Sat, 16 Oct 2004 14:03:39 -0500 To: freebsd-hackers@freebsd.org From: Jan Opacki (by way of "G. Adam Stanislav" ) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new-20040701 (2.0) (Debian) at filter01.roc.ny.frontiernet.net X-Mailman-Approved-At: Sun, 17 Oct 2004 12:20:46 +0000 Subject: 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: Sat, 16 Oct 2004 19:03:45 -0000 Hi Adam, AT the beggining i want to sorry about my poor english. I had a short look at your fbd assembly tutorial. I'm have a such problem useing IN, OUT commands. In my case i want to "speak" with cmos by port 70 and 71. We both know that fbsd as same as linux works in safe mode. So we need a permission to use each port. In linux it's a system call sys_ioperm (http://www.die.net/doc/linux/man/man2/ioperm.2.html). How to ask FreeBSD to allow us to use those ports ? And then we could simply do: mov al, 0 out 70h, al nop nop nop nop in al, 71h Do you haveny any idea ? Best regards, Jan Opacki.