From 845e4f30a917280e2942b784cca8be9eb630bc53 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 5 Mar 2004 18:12:33 +0000 Subject: 2004-03-05 Joel Sherrill * libchipnetwork/open_eth.c: Remove warnings by conditionally compiling this file only only those CPU families with supported exception models. --- c/src/ChangeLog | 6 ++++++ c/src/libchip/network/open_eth.c | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) 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 + + * 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 * 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 #include #include @@ -736,3 +752,5 @@ rtems_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *config, #endif return 1; }; + +#endif /* OPENETH_NOT_SUPPORTED */ -- cgit v1.2.3