pussuw commented on a change in pull request #5782:
URL: https://github.com/apache/incubator-nuttx/pull/5782#discussion_r830798214



##########
File path: arch/risc-v/include/csr.h
##########
@@ -299,25 +299,71 @@
 
 /* In mstatus register */
 
+#define MSTATUS_UIE       (0x1 << 0)  /* User Interrupt Enable */
+#define MSTATUS_SIE       (0x1 << 1)  /* Supervisor Interrupt Enable */
 #define MSTATUS_MIE       (0x1 << 3)  /* Machine Interrupt Enable */
+#define MSTATUS_SPIE      (0x1 << 5)  /* Supervisor Previous Interrupt Enable 
*/
 #define MSTATUS_MPIE      (0x1 << 7)  /* Machine Previous Interrupt Enable */
+#define MSTATUS_SPPS      (0x1 << 8)  /* Supervisor Previous Privilege 
(s-mode) */
+#define MSTATUS_SPPU      (0x0 << 8)  /* Supervisor Previous Privilege 
(u-mode) */

Review comment:
       Sure

##########
File path: arch/risc-v/include/csr.h
##########
@@ -299,25 +299,71 @@
 
 /* In mstatus register */
 
+#define MSTATUS_UIE       (0x1 << 0)  /* User Interrupt Enable */
+#define MSTATUS_SIE       (0x1 << 1)  /* Supervisor Interrupt Enable */
 #define MSTATUS_MIE       (0x1 << 3)  /* Machine Interrupt Enable */
+#define MSTATUS_SPIE      (0x1 << 5)  /* Supervisor Previous Interrupt Enable 
*/
 #define MSTATUS_MPIE      (0x1 << 7)  /* Machine Previous Interrupt Enable */
+#define MSTATUS_SPPS      (0x1 << 8)  /* Supervisor Previous Privilege 
(s-mode) */
+#define MSTATUS_SPPU      (0x0 << 8)  /* Supervisor Previous Privilege 
(u-mode) */
 #define MSTATUS_MPPM      (0x3 << 11) /* Machine Previous Privilege (m-mode) */
+#define MSTATUS_MPPS      (0x1 << 11) /* Machine Previous Privilege (s-mode) */
+#define MSTATUS_MPPU      (0x0 << 11) /* Machine Previous Privilege (u-mode) */

Review comment:
       Sure




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