summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-10 02:50:59 +0000
committer[email protected] <[email protected]>2011-06-10 02:50:59 +0000
commitf00548260aaac620c90726c88f6fa53b830aceca (patch)
treec15b9c7b66b185e39a1a7400db9be4d9b636b3af /components
parent782bdd479a3acd9ce0ecd957814c6d2eda28d6b8 (diff)
eth_device_init is not re-entrance, add a warning.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1479 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/net/lwip-1.4.0/src/netif/ethernetif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/net/lwip-1.4.0/src/netif/ethernetif.c b/components/net/lwip-1.4.0/src/netif/ethernetif.c
index 0a3774ce3c..fe242e8359 100644
--- a/components/net/lwip-1.4.0/src/netif/ethernetif.c
+++ b/components/net/lwip-1.4.0/src/netif/ethernetif.c
@@ -153,6 +153,9 @@ static err_t ethernetif_init(struct netif *netif)
/* ethernetif APIs */
+/* WARNING: because netif_set_up() is not re-entrance ( it will pending on sem/mbox )
+ * you MUST NOT call it before scheduler starts.
+ */
rt_err_t eth_device_init(struct eth_device* dev, const char* name)
{
struct netif* pnetif;