diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-08-18 22:24:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-08-18 22:24:46 +0000 |
commit | 71319f7768b2a19af58444c5443be304cd3904b3 (patch) | |
tree | 64306cd209963fbbefe94740a540e71492e000de /c/src | |
parent | 2005-08-18 Andrew Sinclair <Andrew.Sinclair@elprotech.com> (diff) | |
download | rtems-71319f7768b2a19af58444c5443be304cd3904b3.tar.bz2 |
2005-08-18 Karel Gardas <kgardas@objectsecurity.com>
* startup/bspstart.c: Initialize PCI bus in bsp_start function.
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/ChangeLog | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/startup/bspstart.c | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog index 97a48fa3a4..7347d08c9c 100644 --- a/c/src/lib/libbsp/i386/pc386/ChangeLog +++ b/c/src/lib/libbsp/i386/pc386/ChangeLog @@ -1,3 +1,11 @@ +2005-08-18 Karel Gardas <kgardas@objectsecurity.com> + + * startup/bspstart.c: Initialize PCI bus in bsp_start function. + +2005-08-18 Karel Gardas <kgardas@objectsecurity.com> + + * startup/bspstart.c: Initialize PCI bus in bsp_start function. + 2005-07-18 Lars Munch <lars@segv.dk> PR 813/networking diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c index 6b3997d638..d0fe5cd723 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c +++ b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c @@ -33,6 +33,7 @@ #include <bsp.h> #include <rtems/libio.h> #include <rtems/libcsupport.h> +#include <rtems/pci.h> #include <libcpu/cpuModel.h> /*-------------------------------------------------------------------------+ @@ -134,6 +135,7 @@ void bsp_pretasking_hook(void) +--------------------------------------------------------------------------*/ void bsp_start_default( void ) { + int pci_init_retval; void Calibrate_loop_1ms(void); /* @@ -173,6 +175,15 @@ void bsp_start_default( void ) * Init rtems exceptions management */ rtems_exception_init_mngt(); + + /* + * init PCI Bios interface... + */ + pci_init_retval = pci_initialize(); + if (pci_init_retval != PCIB_ERR_SUCCESS) { + printk("PCI bus: could not initialize PCI BIOS interface\n"); + } + /* * The following information is very useful when debugging. */ |