Created attachment 19412 [details] [review] Patches to build netbsd_pci.c and build/link correctly. Hi, I've ported libpciaccess to NetBSD. It's based in the OpenBSD code, but with differences because on NetBSD, to set MTRRs we have to use i386/x86_64_set_mtrr() and link to libi386 or libx86_64. The patch has been tested successfully on latest NetBSD distribution as well as latest xorg-server version (1.5.1).
Created attachment 19413 [details] NetBSD code for libpciaccess.
On Mon, Oct 6, 2008 at 11:19:50 -0700, bugzilla-daemon@freedesktop.org wrote: > I've ported libpciaccess to NetBSD. applied, thanks. commit 4c1c607c602e5e8d9277b9c01edfa7a8d10333cd Author: Juan RP <xtraeme@gmail.com> Date: Sat Oct 11 20:28:03 2008 +0200 Add NetBSD support It's based in the OpenBSD code, but with differences because on NetBSD, to set MTRRs we have to use i386/x86_64_set_mtrr() and link to libi386 or libx86_64. X.Org bug#17931 <http://bugs.freedesktop.org/show_bug.cgi?id=17931>
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.