gustavonihei commented on code in PR #6603:
URL: https://github.com/apache/incubator-nuttx/pull/6603#discussion_r919283352


##########
arch/xtensa/src/common/xtensa_schedsigaction.c:
##########
@@ -155,6 +156,9 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t 
sigdeliver)
                   (PS_INTLEVEL(XCHAL_EXCM_LEVEL) | PS_UM |
                    PS_WOE | PS_CALLINC(1));
 #endif
+#ifndef CONFIG_BUILD_FLAT
+              mpu_raiseprivilege(CURRENT_REGS);

Review Comment:
   I preferred to not prefix it with `xtensa_` to avoid confusion and also to 
prevent any kind of clash with the Xtensa MPU block, which ESP32 does not embed.
   
   Newer Xtensa-based Espressif chips (ESP32-S2 and ESP32-S3) contain the PMS 
peripheral, which also performs this hardware and software resource management.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to