diff options
author | Damien Zammit <damien@zamaudio.com> | 2018-11-10 06:11:19 -0500 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2018-11-10 06:52:39 -0500 |
commit | e21c80a286b2ded432ecdeb5653e7caeaec7dd52 (patch) | |
tree | fb6cc42625799542cf7cca3a74d38ab710d945bc /src/common_init.c | |
parent | 44f3dd08f99ba67e967980daaea2b800c68e2659 (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>
Diffstat (limited to 'src/common_init.c')
-rw-r--r-- | src/common_init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common_init.c b/src/common_init.c index f7b59bd..d83eb33 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" |