<div dir="auto">Running SMP on zynq7000 - my theory was that u might use QEMU. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Kinsey Moore <<a href="mailto:kinsey.moore@oarcorp.com" target="_blank" rel="noreferrer">kinsey.moore@oarcorp.com</a>> schrieb am Mo., 1. Apr. 2024, 16:35:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>You might be seeing different behavior than I have if you're running single-core. Almost all my lwIP usage has been on 4 cores on the ZynqMP.</div><div><br></div><div>Kinsey<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 31, 2024 at 5:49 PM Bernd Moessner <<a href="mailto:berndmoessner80@gmail.com" rel="noreferrer noreferrer" target="_blank">berndmoessner80@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On my side, the link_detect_thread never gets to running state.<br>
I assume that the issues with the FreeRTOS tick rate and delay<br>
definitions have never been observed as the associated thread<br>
was never running / no one requied it to run. Previously, the<br>
link_detect_thread was set to RTEMS_MAXIMUM_PRIORITY (255).<br>
As far as I understand the docs, this should have worked out<br>
(why didnt it?). Using sched_get_priority_max (returns 254),<br>
the thread becomes active.<br>
---<br>
rtemslwip/xilinx/xlwipopts.h | 4 +++-<br>
1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/rtemslwip/xilinx/xlwipopts.h b/rtemslwip/xilinx/xlwipopts.h<br>
index 8befd67..0f4316f 100644<br>
--- a/rtemslwip/xilinx/xlwipopts.h<br>
+++ b/rtemslwip/xilinx/xlwipopts.h<br>
@@ -27,8 +27,10 @@<br>
#ifndef __XLWIPOPTS_H__<br>
#define __XLWIPOPTS_H__<br>
<br>
+#include <sched.h><br>
+<br>
/* These macros allow RTEMS to pretend to be FreeRTOS for Xilinx drivers */<br>
-#define tskIDLE_PRIORITY RTEMS_MAXIMUM_PRIORITY<br>
+#define tskIDLE_PRIORITY sched_get_priority_max(SCHED_RR)<br>
#define portTICK_RATE_MS (1000 / rtems_clock_get_ticks_per_second())<br>
#define vTaskDelay(x) rtems_task_wake_after(x)<br>
<br>
-- <br>
2.34.1<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" rel="noreferrer noreferrer" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" rel="noreferrer noreferrer" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div>