summaryrefslogtreecommitdiff
path: root/src/common_init.c
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2008-10-11 20:28:03 +0200
committerJulien Cristau <jcristau@debian.org>2008-10-11 20:31:04 +0200
commit4c1c607c602e5e8d9277b9c01edfa7a8d10333cd (patch)
treea055c0e4a877dc5854c3e752e3f2d4847b7a7bd7 /src/common_init.c
parent6ae378611bb4caaf57311734d3adcb7e10ac3622 (diff)
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>
Diffstat (limited to 'src/common_init.c')
-rw-r--r--src/common_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common_init.c b/src/common_init.c
index 0b799ff..6b83d97 100644
--- a/src/common_init.c
+++ b/src/common_init.c
@@ -56,6 +56,8 @@ pci_system_init( void )
err = pci_system_linux_sysfs_create();
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
err = pci_system_freebsd_create();
+#elif defined(__NetBSD__)
+ err = pci_system_netbsd_create();
#elif defined(__OpenBSD__)
err = pci_system_openbsd_create();
#elif defined(__sun)