chirping78 opened a new pull request, #15821:
URL: https://github.com/apache/nuttx/pull/15821

   ## Summary
   
   This is the follow-up work of https://github.com/apache/nuttx/pull/13726 
(percpu reg store this_task) on xtensa.
   To help accelerate this_task(), use misc0 register to store the current 
running task tcb pointer. 
   And use the least significant bit of misc0 to indicate whether in interrupt 
context.
   
   This feature is controlled by a config item `XTENSA_PERCPU_TCB_IN_MISC0`, 
which is currently off by default.
   
   ## Impact
   
   sched
   
   ## Testing
   
   `ostest` passed on these config: `esp32s3-devkit:smp`, 
`esp32s3-devkit:tickless`, `esp32s2-saola-1:ostest`,
   with `XTENSA_PERCPU_TCB_IN_MISC0` on and off (totally 6 combinations).
   
   This feature does not work with `esp32-devkitc:smp` plus 
`XTENSA_PERCPU_TCB_IN_MISC0` on, ostest fails at signal handler test.
   Have no idea why it does not work with esp32, so set 
`XTENSA_PERCPU_TCB_IN_MISC0` to be off by default.
   Maybe change it to `default n if ARCH_CHIP_ESP32` is a good idea?
   


-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to