arch/risc-v/src/esp32c3/esp32c3_irq.c
/****************************************************************************
 * Name: riscv_get_newintctx
 *
 * Description:
 *   Return initial mstatus when a task is created.
 *
 ****************************************************************************/
riscv_get_newintctx
Description:
Return initial mstatus when a task is created.
riscv_get_newintctx Description : Return initial mstatus when a task is created .
uint32_t riscv_get_newintctx(void)
{
  return (MSTATUS_MPPM | MSTATUS_MPIE);
}
uint32_t riscv_get_newintctx ( void ) { return ( MSTATUS_MPPM | MSTATUS_MPIE ) ; }
Name: riscv_get_newintctx
 Description:
   Return initial mstatus when a task is created.
Name : riscv_get_newintctx Description : Return initial mstatus when a task is created .
/* Set machine previous privilege mode to machine mode.
   * Also set machine previous interrupt enable
   */