<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-07-28 15:19 GMT+02:00 Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 28/07/17 15:15, Denis Obrezkov wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2017-07-28 14:56 GMT+02:00 Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a> <mailto:<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>>>:<span class="gmail-"><br>
<br>
    There is a debug option near the bottom of confdefs.h which you<br>
    can enable to generate a data structure filled in with various<br>
    values computed by confdefs. You can look at that in gdb without<br>
    loading it on the target.<br>
<br>
    It is probably worth it to look at that now and see what you spot.<br>
<br>
Okay, I'll try.<br>
<br>
<br>
    And a random thought.. what's the interrupt stack size and how is<br>
    it allocated? What are the port specific related macros set to?<br>
<br>
I don't completely understand what is the interrupt stack. Because, when an interrupt occurs,<br>
I save all registers and move the stack pointer, handle interrupt,<br>
</span></blockquote>
<br>
Now you handle the interrupt on the stack of the interrupted context (usually a thread). So, you must take this overhead into account for every thread. If you switch to an interrupt stack, then you only have to account for one interrupt frame per thread. If you support nested interrupts, you need even more space per thread without an interrupt stack.<br></blockquote><div><br></div><div>Am I understand right that RTEMS has a wrapper for interrupt handlers that creates a dedicated 'interrupt handler' task?<br></div><div>I think it is not, since we call ISR directly from assembler code, thus should we save registers in a dedicated interrupt stack</div><div>by ourselves in the ISR?</div><div><br></div><div>Also, I don't understand what do you mean by: " you only have to account for one interrupt frame per thread".</div></div><div>And what is an 'interrupt frame'? I have found something in a relatively old guide:</div><div><a href="https://docs.rtems.org/releases/rtemsdocs-4.9.6/share/rtems/html/porting/porting00033.html">https://docs.rtems.org/releases/rtemsdocs-4.9.6/share/rtems/html/porting/porting00033.html</a><br></div><div>but it doesn't make it clear.</div>-- <br><div class="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>