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/07/12 15:27:13 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6603: ESP32: Add support for Protected Mode

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


##########
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:
   should we use a general prefix other than mpu? I am afraid that other chip may implement the protection by the different hardware module.



-- 
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