arm: protect state after signal handler
[minix.git] / lib / libsys / pci_init.c
blobd170a4b3910c1836ba86c0c5f01e673c07ae7a21
1 /*
2 pci_init.c
3 */
5 #include "syslib.h"
6 #include <minix/ds.h>
7 #include <minix/sysutil.h>
9 endpoint_t pci_procnr= ANY;
11 /*===========================================================================*
12 * pci_init *
13 *===========================================================================*/
14 void pci_init(void)
16 int r;
17 message m;
19 r= ds_retrieve_label_endpt("pci", &pci_procnr);
20 if (r != 0)
21 panic("pci_init: unable to obtain label for 'pci': %d", r);
23 m.m_type= BUSC_PCI_INIT;
24 r= sendrec(pci_procnr, &m);
25 if (r != 0)
26 panic("pci_init: can't talk to PCI: %d", r);
27 if (m.m_type != 0)
28 panic("pci_init: got bad reply from PCI: %d", m.m_type);