summaryrefslogtreecommitdiff
path: root/src/common_init.c
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2018-11-10 06:11:19 -0500
committerAdam Jackson <ajax@nwnk.net>2019-07-11 15:49:07 +0000
commit048fe0613847e3a9b39bbc3ea3e6db0f54517191 (patch)
tree5c7e035405d53e22a88222770ad60258a0b4b534 /src/common_init.c
parent6e3837284372d70a9427918f622bf1dc7e2a3db6 (diff)
New module for the Hurd
This new module uses Hurd's RPCs for accessing the PCI configuration space. Direct access as in {read_write}_{8,16,32} functions is done by the old x86 module. Some x86 function prototypes are now declared in a new header for the Hurd module to use them, in order to duplicate as little code as possible. Author: Joan Lledó <joanlluislledo@gmail.com> Also-by: Damien Zammit <damien@zamaudio.com> Signed-off-by: Damien Zammit <damien@zamaudio.com>
Diffstat (limited to 'src/common_init.c')
-rw-r--r--src/common_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common_init.c b/src/common_init.c
index 18f717d..1940cff 100644
--- a/src/common_init.c
+++ b/src/common_init.c
@@ -65,7 +65,9 @@ pci_system_init( void )
err = pci_system_openbsd_create();
#elif defined(__sun)
err = pci_system_solx_devfs_create();
-#elif defined(__GNU__) || defined(__CYGWIN__)
+#elif defined(__GNU__)
+ err = pci_system_hurd_create();
+#elif defined(__CYGWIN__)
err = pci_system_x86_create();
#else
# error "Unsupported OS"