2004-03-05 Joel Sherrill <joel@OARcorp.com>

* libchipnetwork/open_eth.c: Remove warnings by conditionally
	compiling this file only only those CPU families with supported
	exception models.
This commit is contained in:
Joel Sherrill
2004-03-05 18:12:33 +00:00
parent d52342ec8a
commit 845e4f30a9
2 changed files with 24 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2004-03-05 Joel Sherrill <joel@OARcorp.com>
* libchipnetwork/open_eth.c: Remove warnings by conditionally
compiling this file only only those CPU families with supported
exception models.
2004-02-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2004-02-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* acinclude.m4: Fix loosing arguments when configuring cpukit and * acinclude.m4: Fix loosing arguments when configuring cpukit and

View File

@@ -10,6 +10,22 @@
* *
*/ */
/*
* This driver current only supports architectures with the old style
* exception processing. The following checks try to keep this
* from being compiled on systems which can't support this driver.
*/
#if defined(__i386__)
#define OPENETH_NOT_SUPPORTED
#endif
#if defined(__PPC__) && (defined(mpc604) || defined(mpc750) || defined(mpc603e))
#define OPENETH_NOT_SUPPORTED
#endif
#if !defined(OPENETH_NOT_SUPPORTED)
#include <bsp.h>
#include <rtems.h> #include <rtems.h>
#include <bsp.h> #include <bsp.h>
@@ -736,3 +752,5 @@ rtems_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *config,
#endif #endif
return 1; return 1;
}; };
#endif /* OPENETH_NOT_SUPPORTED */