summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/rtems_taskqueue.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-02-13 09:46:25 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-02-13 09:46:25 +0100
commit28a6f92d32b4a286f0c726ea9030a23a4852fe33 (patch)
treeb79b8b7122bb8f8c04b35dbe533a554f127d968d /bsd_eth_drivers/libbsdport/rtems_taskqueue.c
parentaf30847a8b37476044817b9ff1653a7ee2b9c779 (diff)
downloadlibbsdport-28a6f92d32b4a286f0c726ea9030a23a4852fe33.tar.bz2
Avoid rtems_bsdnet_event_receive()HEADmaster
RTEMS 4.11 will use system events inside the network stack. Use normal events for CALLOUT(9) and TASKQUEUE(9) implementations.
Diffstat (limited to 'bsd_eth_drivers/libbsdport/rtems_taskqueue.c')
-rw-r--r--bsd_eth_drivers/libbsdport/rtems_taskqueue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bsd_eth_drivers/libbsdport/rtems_taskqueue.c b/bsd_eth_drivers/libbsdport/rtems_taskqueue.c
index 97153ca..c5e2256 100644
--- a/bsd_eth_drivers/libbsdport/rtems_taskqueue.c
+++ b/bsd_eth_drivers/libbsdport/rtems_taskqueue.c
@@ -223,7 +223,9 @@ struct taskqueue *tq = arg;
rtems_event_set evs;
rtems_status_code sc;
while ( 1 ) {
- sc = rtems_bsdnet_event_receive(TQ_WAKE_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &evs);
+ rtems_bsdnet_semaphore_release();
+ sc = rtems_event_receive(TQ_WAKE_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &evs);
+ rtems_bsdnet_semaphore_obtain();
if ( RTEMS_SUCCESSFUL != sc ) {
rtems_error(sc,"rtems_taskqueue: taskqueueDoWork() unable to receive wakup event\n");
rtems_panic("Can't proceed\n");