You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/15 12:37:16 UTC

[GitHub] [incubator-nuttx] Ouss4 edited a comment on pull request #5336: xtensa: use swint to swith context

Ouss4 edited a comment on pull request #5336:
URL: https://github.com/apache/incubator-nuttx/pull/5336#issuecomment-1040222128


   Note that enabling a CPU interrupt must be done from the specific CPU.  We cannot enable CPU1's interrupts from CPU0.
   In this case then, I believe we need:
   1. A call to `g_irqmap[XTENSA_IRQ_SWINT] = IRQ_MKMAP(1, ESP32_CPUINT_SOFTWARE1);` This maps CPU1 interrupt. This can be done from any CPU.
   2. During CPU1 startup we call `up_enable_irq(XTENSA_IRQ_SWINT);`. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org