<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CW5.7 - sc3000 - SDOS in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146643#M1780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In fact the OS is setting up the stack for the diverse tasks with interrupt mask set to 0. So when the scheduler is performing the return from interrupt the interrupts are automatically disabled.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;SmartDSPOS provides you with a function osHwiDisable in starcore_hwi.c, which is disabling the interrupts&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-09-18&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:23 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2007 20:33:32 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2007-09-17T20:33:32Z</dc:date>
    <item>
      <title>CW5.7 - sc3000 - SDOS</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146642#M1779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt;SDOS clearly says that all the interrupts should be disabled at the end of osinitialiazation and should be enabled in osstart(background)&amp;nbsp; function. But in osStart() function which particular function is doing this (enabling process). Please tell me where n how this interrupt is being enabled in osStart() process.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-09-18&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;03:23 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 18:54:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146642#M1779</guid>
      <dc:creator>Fresher</dc:creator>
      <dc:date>2007-09-17T18:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: CW5.7 - sc3000 - SDOS</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146643#M1780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In fact the OS is setting up the stack for the diverse tasks with interrupt mask set to 0. So when the scheduler is performing the return from interrupt the interrupts are automatically disabled.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;SmartDSPOS provides you with a function osHwiDisable in starcore_hwi.c, which is disabling the interrupts&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-09-18&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:23 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 20:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146643#M1780</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-09-17T20:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: CW5.7 - sc3000 - SDOS</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146644#M1781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks CrasyCat. But either I couldnt understand it or I am missing something as I am still confused with the fact that in osStart() function where we are exactly getting the interrupt finaly enabled for all the driver (for ex tdm etc) . I mean either it is some assembly function or C function which is doing this enabling finally . osHwienable() is I suppose not the same thing which I require. I want to know at what point my OS is in ready condition to accept the interrupt at tdm rx port, to say.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-09-18&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:23 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 22:00:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146644#M1781</guid>
      <dc:creator>Fresher</dc:creator>
      <dc:date>2007-09-17T22:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: CW5.7 - sc3000 - SDOS</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146645#M1782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Basically the interrupts are enabled again&amp;nbsp;when the OS changes the context to the first process, which needs to be activated.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When you create a task, the OS is initializing the Task stack with the start address of the task main function and a SR value where interrupt are disabled.&lt;/DIV&gt;&lt;DIV&gt;When the fist task is activated, the return PC and SR value is read from the stack and the interrupts are enabled.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I do not think you need to understand the internal mechanism. Point is when the first task gets started&amp;nbsp;the interrupts are enabled.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 18:39:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW5-7-sc3000-SDOS/m-p/146645#M1782</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-09-19T18:39:17Z</dc:date>
    </item>
  </channel>
</rss>

