Date: Tue, 1 Dec 2009 17:50:39 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Alexander Best <alexbestms@wwu.de> Cc: freebsd-hackers@freebsd.org Subject: Re: i386_set_ioperm(2)/i386_get_ioperm(2) replacement after switch from x86 to amd64 Message-ID: <20091201155039.GA2368@deviant.kiev.zoral.com.ua> In-Reply-To: <permail-200912011521391e86ffa8000042b3-a_best01@message-id.uni-muenster.de> References: <20091201141305.GZ2368@deviant.kiev.zoral.com.ua> <permail-200912011521391e86ffa8000042b3-a_best01@message-id.uni-muenster.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--/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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091201155039.GA2368>