summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bsd_eth_drivers/ChangeLog4
-rw-r--r--bsd_eth_drivers/libbsdport/devicet.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/bsd_eth_drivers/ChangeLog b/bsd_eth_drivers/ChangeLog
index 384e5e8..c07d347 100644
--- a/bsd_eth_drivers/ChangeLog
+++ b/bsd_eth_drivers/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-23 Till Straumann <Till.Straumann@TU-Berlin.de>
+
+ * libbsdport/devicet.c: Initialize libbspExt.
+
2010-06-30 Till Straumann <Till.Straumann@TU-Berlin.de>
* libbsdport/bus.h: PPC's inlines from libcpu/io.h still have
diff --git a/bsd_eth_drivers/libbsdport/devicet.c b/bsd_eth_drivers/libbsdport/devicet.c
index 923918f..7d678fb 100644
--- a/bsd_eth_drivers/libbsdport/devicet.c
+++ b/bsd_eth_drivers/libbsdport/devicet.c
@@ -1,5 +1,9 @@
#define DEVICET_EXTERN_INLINE
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "devicet.h"
#include <rtems/rtems_bsdnet.h>
#include <sys/malloc.h>
@@ -12,6 +16,10 @@
#include <sys/bus.h>
#include "libbsdport_api.h"
+#ifdef HAVE_LIBBSPEXT
+#include <bsp/bspExt.h>
+#endif
+
#define DEBUG 0
int libbsdportAttachVerbose = DEBUG;
@@ -253,6 +261,10 @@ int n_bus;
if ( !attaching )
return ENOTSUP;
+#ifdef HAVE_LIBBSPEXT
+ bspExtInit();
+#endif
+
if ( (wantedunit = get_pci_triple(cfg->name)) < 0 ) {
get_name_unit(cfg->name, nm, &wantedunit);
} else {