diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-03-05 18:12:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-03-05 18:12:33 +0000 |
commit | 845e4f30a917280e2942b784cca8be9eb630bc53 (patch) | |
tree | 74c3fa609b28aa6f878efe794d39938d7433d29e | |
parent | 2004-03-05 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-845e4f30a917280e2942b784cca8be9eb630bc53.tar.bz2 |
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.
-rw-r--r-- | c/src/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/libchip/network/open_eth.c | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog index 09ad41b22a..be875bae5d 100644 --- a/c/src/ChangeLog +++ b/c/src/ChangeLog @@ -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> * acinclude.m4: Fix loosing arguments when configuring cpukit and diff --git a/c/src/libchip/network/open_eth.c b/c/src/libchip/network/open_eth.c index e18890fdfe..3f61b9f4d1 100644 --- a/c/src/libchip/network/open_eth.c +++ b/c/src/libchip/network/open_eth.c @@ -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 <bsp.h> @@ -736,3 +752,5 @@ rtems_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *config, #endif return 1; }; + +#endif /* OPENETH_NOT_SUPPORTED */ |