<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 27, 2021, 3:52 PM zack_on_the_speed_chanel <<a href="mailto:zack_on_the_speed_chanel@protonmail.ch">zack_on_the_speed_chanel@protonmail.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>I found a part of the assembly that says that the path is not called. <br></div><div><pre>if ( ( flags & POSIX_CONDITION_VARIABLES_CLOCK_MONOTONIC ) != 0 ) {  <br></pre></div><div><pre>40005594:   12 80 00 39     bne  40005678 <_POSIX_Condition_variables_Wait_support+0x118> <== NEVER TAKEN<br></pre><pre>40005598:   f4 27 bf e8     st  %i2, [ %fp + -24 ]   <br></pre><pre><span style="font-family:arial,sans-serif">So if i'm correct The BSP supports this fuction of CLOCK_Monotonic (because the assembly is archetcture specific)? Which means that there is a need for the test I assume?</span><span style="font-family:arial,sans-serif"><br></span></pre><pre><span style="font-family:arial,sans-serif">Also does leon= the same as  the bsp  erc32-sis (or the one in the tutorial)  </span><span style="font-family:arial,sans-serif"><br></span></pre><pre><span style="font-family:arial,sans-serif"></span></pre></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Please read the original source to confirm but I think you're right but it supports it but doesn't have a test.</div><div dir="auto"><br></div><div dir="auto">The ERC32 what's the first space hardened sparc processor. The leon3 is a later processor in the same family. Both use the same build of GCC and are just different bsps. In fact both run on the same sis simulator. It's just that a user starting today on a mission, is more likely to use the Leon3. The leon3 also can support SMP</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><pre><span style="font-family:arial,sans-serif"><br></span></pre><pre><span style="font-family:arial,sans-serif">Zack
</span><span style="font-family:arial,sans-serif"><br></span></pre></div><div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Sent with </span><a href="https://protonmail.com" target="_blank" rel="noreferrer"><span style="font-family:arial,sans-serif">ProtonMail</span></a><span style="font-family:arial,sans-serif"> Secure Email.</span><br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On Saturday, March 27, 2021 7:50 PM, Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" rel="noreferrer">joel@rtems.org</a>> wrote:<br></div><div> <br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><br></div><div><br></div><div class="gmail_quote"><div dir="ltr">On Sat, Mar 27, 2021 at 2:33 PM zack_on_the_speed_chanel <<a href="mailto:zack_on_the_speed_chanel@protonmail.ch" target="_blank" rel="noreferrer">zack_on_the_speed_chanel@protonmail.ch</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"><div><div>Hello,<br></div><div>Last year I tried to do work and help to
contribute to RTEMS. I didn't get too far but now I think I now I have a
 better shot at it! I was able to complete the BSP and tools build, and
run the hello world examples.  I want to work on small tickets first and
 work my way into the source code. The ticket is asking for a test 
clock_create with clock monotonic.  here is the link for the ticket I'm referring to <a href="https://devel.rtems.org/ticket/3889" target="_blank" rel="noreferrer">https://devel.rtems.org/ticket/3889</a> .My thinking is to look for code that
does something similar. In the ticket it says that there is a test with
clock_realtime. I was on the discord and someone suggested me to looking
 to the coverage tests. How come i don't see the function clock_create
when looking at the annotated assembly code?  Also I think the test
should be based on this <a href="https://git.rtems.org/rtems/tree/testsuites/psxtests/psxtimer02/psxtimer.c" target="_blank" rel="noreferrer">https://git.rtems.org/rtems/tree/testsuites/psxtests/psxtimer02/psxtimer.c</a><br></div></div></blockquote><div><br></div><div> That was me on Discord. :)<br></div><div><br></div><div>Yep. psxtimer02 is a good test to start from since it is doing similar cases on a different clock.<br></div><div><br></div><div><div>The coverage I was suggesting to look at is here:<br></div><div><br></div><div><a href="https://ftp.rtems.org/pub/rtems/people/joel/coverage/coverage-2021-02-28/" target="_blank" rel="noreferrer">https://ftp.rtems.org/pub/rtems/people/joel/coverage/coverage-2021-02-28/</a><br></div></div><div><br></div><div>Drill down to leon3 and posix and look at the timer methods (create, settime, gettime) for current coverage.<br></div><div><br></div><div><div>But I warn you, it may or may not actually support the CLOCK_REALTIME and CLOCK_MONOTONIC as required here:<br></div><div><br></div><div><a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_create.html" target="_blank" rel="noreferrer">https://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_create.html</a><br></div></div><div><br></div><div>So coverage may be high because the implementation of the posix methods themselves are missing something.<br></div><div><br></div><div>Pull the thread a bit to see if the methods support the clock value in question. If so, we just need tests. If not, some code gets added to the timer manager and tests get added.<br></div><div><br></div><div>--joel<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div><div>Thanks <br></div><div>Zack<br></div></div><div><br></div><div>_______________________________________________<br></div><div> devel mailing list<br></div><div> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br></div><div> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br></div></blockquote></div></div></blockquote><div><br></div>_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div>