<?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>MQX Software SolutionsのトピックRe: MQX Interrupt Preemption Question</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Interrupt-Preemption-Question/m-p/320603#M10253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The newly ready-to-run task should run immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an explanation of how this works in the MQX User Guide, section 3.9. Essentially there is a Kernel interrupt that acts as a wrapper around user-defined interrupt code. When the user-defined ISR returns, it returns to the kernel ISR which executes a context switch if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this to work you need to install your ISR using the mechanisms provided (i.e. _int_install_isr, see 3.9.2). If you just hook user-defined ISR code to raw interrupt vectors then MQX will have no knowledge that anything has happened, and you won't see a context switch until the next tick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 23:39:48 GMT</pubDate>
    <dc:creator>matthewkendall</dc:creator>
    <dc:date>2014-06-18T23:39:48Z</dc:date>
    <item>
      <title>MQX Interrupt Preemption Question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Interrupt-Preemption-Question/m-p/320602#M10252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a quick question about the operation of MQX.&amp;nbsp; Let's say we have the following senario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Low Priority Task Running&lt;/P&gt;&lt;P&gt;Interrupt Occurs and causes a higher priority task to become ready to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon exiting from the ISR, does MQX immediately task switch to the higher task, or does it wait for the next systick period before changing context?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe most RTOS immediately change, but we are not seeing this behavior on our system.&amp;nbsp; We are seeing it wait until the next system tick period before changing to the higher priority task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 00:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Interrupt-Preemption-Question/m-p/320602#M10252</guid>
      <dc:creator>jmag99</dc:creator>
      <dc:date>2014-06-18T00:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: MQX Interrupt Preemption Question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Interrupt-Preemption-Question/m-p/320603#M10253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The newly ready-to-run task should run immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an explanation of how this works in the MQX User Guide, section 3.9. Essentially there is a Kernel interrupt that acts as a wrapper around user-defined interrupt code. When the user-defined ISR returns, it returns to the kernel ISR which executes a context switch if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this to work you need to install your ISR using the mechanisms provided (i.e. _int_install_isr, see 3.9.2). If you just hook user-defined ISR code to raw interrupt vectors then MQX will have no knowledge that anything has happened, and you won't see a context switch until the next tick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 23:39:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Interrupt-Preemption-Question/m-p/320603#M10253</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2014-06-18T23:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: MQX Interrupt Preemption Question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Interrupt-Preemption-Question/m-p/320604#M10254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;You can find a simple example in the following thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/324484"&gt;https://community.freescale.com/thread/324484&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 00:11:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Interrupt-Preemption-Question/m-p/320604#M10254</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-06-24T00:11:01Z</dc:date>
    </item>
  </channel>
</rss>

