From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 1 15:51:13 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 9FEDF106568B for ; Tue, 1 Dec 2009 15:51:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id EA55A8FC0C for ; Tue, 1 Dec 2009 15:51:12 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id nB1FoeTm079986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Dec 2009 17:50:40 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id nB1Fod3L081021; Tue, 1 Dec 2009 17:50:39 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id nB1Fodbr081020; Tue, 1 Dec 2009 17:50:39 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 1 Dec 2009 17:50:39 +0200 From: Kostik Belousov To: Alexander Best Message-ID: <20091201155039.GA2368@deviant.kiev.zoral.com.ua> References: <20091201141305.GZ2368@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/T5g/TLNXpBPJeG6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua 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: Tue, 01 Dec 2009 15:51:13 -0000 --/T5g/TLNXpBPJeG6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 01, 2009 at 04:21:39PM +0100, Alexander Best wrote: > i'm getting this during compilation/linking: >=20 > undefined reference to `i386_set_ioperm' Libc wrappers for these syscalls are not provided by amd64 libc. Use sysarch(2) to execute them. >=20 > do i need to link against some x86 compat lib? You cannot link 32bit library to amd64 binary. >=20 > alex >=20 > ps: also the ioperm manuals are not getting installed on amd64 it seems. >=20 > Kostik Belousov schrieb am 2009-12-01: > > On Tue, Dec 01, 2009 at 02:22:23PM +0100, Alexander Best wrote: > > > hi there, >=20 > > > 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? >=20 > > > * 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.h= tml) >=20 > > FreeBSD 8.0 supports these syscalls on amd64. --/T5g/TLNXpBPJeG6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksVO08ACgkQC3+MBN1Mb4in/ACdHYR0aI+F1NFb8hI/0dX79JT4 NDoAoPC0YXHP/W2BZNVYGPoQ11PizM82 =kjC8 -----END PGP SIGNATURE----- --/T5g/TLNXpBPJeG6--