[PATCH 6/8] network: Special case for RTEMS_MULTIPROCESSING
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Mar 24 14:57:45 UTC 2016
Allow network tasks to run with priority 0 (PRIORITY_PSEUDO_ISR).
---
cpukit/libnetworking/rtems/rtems_glue.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index 1355fbb..b50f734 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -284,7 +284,11 @@ rtems_bsdnet_initialize (void)
*/
if (rtems_bsdnet_config.network_task_priority == 0)
networkDaemonPriority = 100;
+#ifdef RTEMS_MULTIPROCESSING
+ else if (rtems_bsdnet_config.network_task_priority != UINT32_MAX)
+#else
else
+#endif
networkDaemonPriority = rtems_bsdnet_config.network_task_priority;
/*
@@ -694,6 +698,9 @@ rtems_bsdnet_newproc (char *name, int stacksize, void(*entry)(void *), void *arg
networkDaemonPriority,
stacksize,
RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
+#ifdef RTEMS_MULTIPROCESSING
+ RTEMS_SYSTEM_TASK |
+#endif
RTEMS_NO_FLOATING_POINT|RTEMS_LOCAL,
&tid);
if (sc != RTEMS_SUCCESSFUL)
--
1.8.4.5
More information about the devel
mailing list