From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 2 21:19:11 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B2E5106566B for ; Wed, 2 Dec 2009 21:19:11 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay2.uni-muenster.de (ZIVM-EXRELAY2.UNI-MUENSTER.DE [128.176.192.15]) by mx1.freebsd.org (Postfix) with ESMTP id D2B7C8FC17 for ; Wed, 2 Dec 2009 21:19:10 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.47,330,1257116400"; d="scan'208";a="230648302" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay2.uni-muenster.de with ESMTP; 02 Dec 2009 22:19:09 +0100 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id 1305E1B07E7; Wed, 2 Dec 2009 22:19:09 +0100 (CET) Date: Wed, 02 Dec 2009 22:19:08 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Kostik Belousov Message-ID: In-Reply-To: <20091201155039.GA2368@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: i386_set_ioperm(2)/i386_get_ioperm(2) replacement after switch from x86 to amd64 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, 02 Dec 2009 21:19:11 -0000 ahh. thanks for the hint. wasn't aware of sysarch(2). cheers. alex Kostik Belousov schrieb am 2009-12-01: > On Tue, Dec 01, 2009 at 04:21:39PM +0100, Alexander Best wrote: > > i'm getting this during compilation/linking: > > undefined reference to `i386_set_ioperm' > Libc wrappers for these syscalls are not provided by amd64 libc. > Use sysarch(2) to execute them. > > do i need to link against some x86 compat lib? > You cannot link 32bit library to amd64 binary. > > alex > > ps: also the ioperm manuals are not getting installed on amd64 it > > seems. > > Kostik Belousov schrieb am 2009-12-01: > > > On Tue, Dec 01, 2009 at 02:22:23PM +0100, Alexander Best wrote: > > > > hi there, > > > > i recently switch from x86 to amd64. right now i'm looking for > > > > a > > > > way to > > > > replace i386_set_ioperm(2) and i386_get_ioperm(2) (which are > > > > x86 > > > > specific). > > > > any suggestions? > > > > * full /dev/io access is rather nasty > > > > * the app i'm developing is using inb/outb opcodes through > > > > inline > > > > assembly in > > > > order to access the parallel port. i tried using ppi(4), but > > > > that > > > > slows down > > > > things dramatically (see: > > > > http://lists.freebsd.org/pipermail/freebsd-hackers/2009-July/029188.html) > > > FreeBSD 8.0 supports these syscalls on amd64.